From 6316e6439429642bcb0b1921d13d15e6e91bcb9a Mon Sep 17 00:00:00 2001 From: Oliver Sartun Date: Sun, 24 Aug 2014 23:59:40 +0200 Subject: [PATCH] Added undoAll & redoAll to the docs --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index ee92b2e..42a332c 100644 --- a/README.md +++ b/README.md @@ -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.