Transaction$Typings extension

on

Properties

changes List<ChangedEvent>
This read-only property returns the list of ChangedEvents. The changes are stored in order of occurrence.
getter/setter pair
isComplete bool
Gets or sets whether we can add more ChangedEvents to this list of changes. This is initially false. It is set to true by UndoManager#commitTransaction and UndoManager#rollbackTransaction.
getter/setter pair
name String
Gets or sets the transaction name for this collection of changes. This is set by a top-level call to UndoManager#commitTransaction.
getter/setter pair

Methods

canRedo() bool
This predicate returns true if you can call #redo, namely when #isComplete is true. @return {boolean} true if ready for #redo to be called.
canUndo() bool
This predicate returns true if you can call #undo, namely when #isComplete is true. @return {boolean} true if ready for #undo to be called.
clear() → void
Clear all of the saved changes.
optimize() → void
Remove all but the first and last Property ChangedEvents for each property for each object.
redo() → void
Re-perform these changes after an #undo. This is normally called only by the UndoManager. #canRedo must be true for this method to have any effect.
undo() → void
Undo all of the changes, in reverse order. This is normally called only by the UndoManager. #canUndo must be true for this method to have any effect.