Namespace: History

History

Undo/redo history handling.
Source:

Methods

(static) clear(binding)

Clear history.
Parameters:
Name Type Description
binding Binding binding
Source:

(static) destroy(binding, optionsopt)

Clear history and shutdown listener.
Parameters:
Name Type Attributes Description
binding Binding history binding
options Object <optional>
options object
Properties
Name Type Attributes Default Description
notify Boolean <optional>
true should listeners be notified
Source:

(static) hasRedo(binding) → {Boolean}

Check if history has redo information.
Parameters:
Name Type Description
binding Binding binding
Source:
Returns:
Type
Boolean

(static) hasUndo(binding) → {Boolean}

Check if history has undo information.
Parameters:
Name Type Description
binding Binding binding
Source:
Returns:
Type
Boolean

(static) init(binding)

Init history.
Parameters:
Name Type Description
binding Binding binding
Source:

(static) redo(binding) → {Boolean}

Revert to next state.
Parameters:
Name Type Description
binding Binding binding
Source:
Returns:
true, if binding has redo information
Type
Boolean

(static) undo(binding) → {Boolean}

Revert to previous state.
Parameters:
Name Type Description
binding Binding binding
Source:
Returns:
true, if binding has undo information
Type
Boolean