Extends
Members
engine :*
- Source:
- Inherited From:
Current engine accessor.
Methods
(abstract) on(event, listener)
Add event listener.
Parameters:
Name | Type | Description |
---|---|---|
event |
string | The event to listen. |
listener |
function | The listener. |
Returns:
The current driver instance.
(abstract) off(event, listener)
Remove event listener for single listener.
Parameters:
Name | Type | Description |
---|---|---|
event |
string | The event that has been listen. |
listener |
function | The listener. |
Returns:
The current driver instance.
(abstract) once(event, listener)
Add event listener for first event dispatch only.
Parameters:
Name | Type | Description |
---|---|---|
event |
string | The event to listen. |
listener |
function | The listener. |
Returns:
The current driver instance.
(abstract) emit(event, payloadopt)
Dispatch an event with a given payload.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | The event to dispatch. | |
payload |
* |
<optional> |
The payload to send into the listeners. |
Returns:
The current driver instance.
(abstract) removeListeners(event)
Remove listeners for a given event.
Parameters:
Name | Type | Description |
---|---|---|
event |
string | The event that has been listen. |
Returns:
The current driver instance.
(abstract) removeAllListeners()
Remove all listeners for all events.
Returns:
The current driver instance.
setEngine(engine)
- Source:
- Inherited From:
Set current engine.
Parameters:
Name | Type | Description |
---|---|---|
engine |
* | The engine instance. |
Returns:
The current instance.