EventInstance
A Plexus Event. This is a trackable event that can be listened to and fired.
.once(callback)
Listen for an event only once
| Param | Description |
|---|---|
| callback | The function to call when the event is fired |
.on(callback)
Listen for an event
| Param | Description |
|---|---|
| callback | The function to call when the event is fired |
.emit(payload)
Broadcast an event to all listeners
| Param | Description |
|---|---|
| payload | The payload to send to all listeners |
.disable(disable)
Turn the Event Manager off/on
| Param | Type | Default | Description |
|---|---|---|---|
| disable | boolean | true | Should this event Engine be disabled |