Constructor
new RemoveElementCommand(elem, oldNextSibling, oldParent, textopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
elem |
Element | The removed DOM element |
|
oldNextSibling |
Node | The DOM element's nextSibling when it was in the DOM |
|
oldParent |
Element | The DOM element's parent |
|
text |
string |
<optional> |
An optional string visible to user related to this change |
- Implements:
- Source:
Methods
apply(handler) → {void}
Re-removes the new element.
Parameters:
Name | Type | Description |
---|---|---|
handler |
module:history.HistoryEventHandler |
- Implements:
- Source:
Fires:
Returns:
- Type
- void
unapply(handler) → {void}
Re-adds the new element.
Parameters:
Name | Type | Description |
---|---|---|
handler |
module:history.HistoryEventHandler |
- Implements:
- Source:
Fires:
Returns:
- Type
- void