AnsweredAssumed Answered

UndoManager change event listener

Question asked by mcoop05 on Aug 12, 2014
Latest reply on Aug 15, 2014 by khutchins-esristaff

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?