Constructor
new MoveElementCommand(elem, oldNextSibling, oldParent, textopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
elem |
Element | The DOM element that was moved |
|
oldNextSibling |
Element | The element's next sibling before it was moved |
|
oldParent |
Element | The element's parent before it was moved |
|
text |
string |
<optional> |
An optional string visible to user related to this change |
- Implements:
- Source:
Methods
apply(handler) → {void}
Re-positions the element.
Parameters:
Name | Type | Description |
---|---|---|
handler |
module:history.HistoryEventHandler |
- Implements:
- Source:
Fires:
Returns:
- Type
- void
unapply(handler) → {void}
Positions the element back to its original location.
Parameters:
Name | Type | Description |
---|---|---|
handler |
module:history.HistoryEventHandler |
- Implements:
- Source:
Fires:
Returns:
- Type
- void