EventDispatcher
This is a singleton, it cannot be instantiated
Static Methods
::subscribe
EventDispatcher.subscribe(object, event, subscriber): void
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| object | object | Yes | - | The object to listen to |
| event | string | Yes | - | The event name to listen to |
| subscriber | function | Yes | - | The listener which will be called when the event is fired by the object |
Returns:
Type: void
