Constructor
new ChangeElementCommand(elem, attrs, text)
Parameters:
Name | Type | Description |
---|---|---|
elem |
Element | The DOM element that was changed |
attrs |
module:history.CommandAttributes | Attributes to be changed with the values they had before the change |
text |
string | An optional string visible to user related to this change |
- Implements:
- Source:
Methods
apply(handler) → {void}
Performs the stored change action.
Parameters:
Name | Type | Description |
---|---|---|
handler |
module:history.HistoryEventHandler |
- Implements:
- Source:
Fires:
Returns:
- Type
- void
unapply(handler) → {void}
Reverses the stored change action.
Parameters:
Name | Type | Description |
---|---|---|
handler |
module:history.HistoryEventHandler |
- Implements:
- Source:
Fires:
Returns:
- Type
- void