Event
Represents the class for event.
Constructor Summary
| Public Constructor | ||
| public |
constructor(name: string) Create instance. |
|
Method Summary
| Public Methods | ||
| public |
off(subscriber: function) Unsubscribe from event. |
source |
| public |
on(subscriber: function) Subscribe to event. |
source |
| public |
trigger(data: object) Trigger the event. |
source |
Public Constructors
public constructor(name: string) source
Create instance.
Params:
| Name | Type | Attribute | Description |
| name | string | Event name. |
Public Members
Public Methods
public off(subscriber: function) source
Unsubscribe from event.
Params:
| Name | Type | Attribute | Description |
| subscriber | function | Event handler function. |
public on(subscriber: function) source
Subscribe to event.
Params:
| Name | Type | Attribute | Description |
| subscriber | function | Event handler function. |
public trigger(data: object) source
Trigger the event.
Params:
| Name | Type | Attribute | Description |
| data | object |
