I'm not having any luck setting up the event listener for the UndoManager unless I use the "connect" style instead of the "on" style.
var undoManager = new UndoManager();
undoManager.on("change", checkUndoRedoState); //this throws an error
connect.connect(undoManager, "onChange", checkUndoRedoState); //this works fine
Any ideas what I'm missing?
Thanks,Matt