Do app.editor
, app.palette
and DbBuilder
trigger Backbone-events? The UndoManager adds listeners to the objects that are passed to the register
-function. If you haven't extended the supported UndoTypes your UndoManager supports the add
, remove
, reset
and change
events and creates undoable actions from these events.
You may want to test whether your objects trigger these events by logging them into the console.
app.editor.on("all", console.log, console);
app.palette.on("all", console.log, console);
DbBuilder.on("all", console.log, console);
If they trigger one of the events and isAvailable("undo")
still returns false afterwards then there must be a tougher problem, but try this at first.