EventInstance
A Plexus Event. This is a trackable event that can be listened to and fired.
.id
The internal id of the event
.name
The name of the state (NOTE: set with the .name(name) function)
.name
Set the key of the state for enhanced internal tracking
.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 |