Methods
emit(eventName)
Emit an event.
Parameters:
Name | Type | Description |
---|---|---|
eventName |
string | the event to emit. |
...params |
parameters to pass to the event handler. |
- 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: