Class DeleteCommand
Defined in: DeleteCommand.js.
Constructor Attributes | Constructor Name and Description |
---|---|
DeleteCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when figures/groups/connectors are deleted
|
Method Attributes | Method Name and Description |
---|---|
redo()
This method got called every time the Command must execute
|
|
undo()
This method should be called every time the Command should be undone
|
Class Detail
DeleteCommand(property, previousValue, currentValue, previousValue, currentValue)
Object that is used to undo actions when figures/groups/connectors are deleted
- Parameters:
- property
- {Null}
- previousValue
- {Figure}/{Connector}/{Group} the item being deleted
- currentValue
- {Event} the event that caused the delete
- previousValue
- currentValue
Method Detail
redo()
This method got called every time the Command must execute
undo()
This method should be called every time the Command should be undone