Class: Command

history.Command()

Base class for commands.

Constructor

new Command()

Source:

Methods

apply(handler, applyFunction) → {void}

Parameters:
Name Type Description
handler module:history.HistoryEventHandler
applyFunction callback
Source:
Returns:
Type
void

elements() → {Array.<Element>}

Source:
Returns:

Array with element associated with this command This function needs to be surcharged if multiple elements are returned.

Type
Array.<Element>

getText() → {string}

Source:
Returns:
Type
string

type() → {string}

Source:
Returns:

String with element associated with this command

Type
string

unapply(handler, unapplyFunction) → {void}

Parameters:
Name Type Description
handler module:history.HistoryEventHandler
unapplyFunction callback
Source:
Returns:
Type
void