ChangeItemCommand Class
Remarks See Also

Handles undo / redo of property changes.

Namespace: MindFusion.Diagramming
Package: ChangeItemCommand.js


JavaScript  Copy Code

// class
ChangeItemCommand.prototype = {}


The ChangeItemCommand constructor records the state of an item, and its undo and redo methods restore the item to either its old or new state.


See executeCommand for an example showing how item's state is saved for later undo / redo.

 Inheritance Hierarchy


 See Also