Added undoAll & redoAll to the docs

master
Oliver Sartun 10 years ago
parent 0d7c918ab8
commit 6316e64394

@ -151,6 +151,10 @@ The method to undo the last action is `undo()`.
Pass `true` to activate *Magic Fusion*. That way you undo the complete last set of actions that happened at once.
#### undoAll `undoManager.undoAll();`
Undoes all actions ever tracked by the undo manager.
#### redo `undoManager.redo([magic])`
The method to redo the latest undone action is `redo()`.
@ -165,6 +169,10 @@ The method to redo the latest undone action is `redo()`.
Like with `undo()` you can pass `true` to activate *Magic Fusion* and to redo the complete last set of actions that were undone.
#### redoAll `undoManager.redoAll();`
Redoes all actions ever tracked by the undo manager.
#### isAvailable `undoManager.isAvailable(type)`
This method checks if there's an UndoAction in the stack that can be undone / redone. Pass `"undo"` or `"redo"` as the argument.

Loading…
Cancel
Save