Methods
emit(eventName)
Emit an event.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName |
string | the event to emit. |
...params |
parameters to pass to the event handlers. |
- Source:
off(eventName, eventHandler)
Remove an event handler.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName |
string | the event to remove a handler from. |
eventHandler |
function | the event handler function to remove. |
- Source:
on(eventName, eventHandler)
Add an event handler.
Parameters:
| Name | Type | Description |
|---|---|---|
eventName |
string | the event to handle. |
eventHandler |
function | the event handler function. |
- Source: