EventHandler
Method Summary
Public Methods | ||
public |
addEventHandler(eventName: *, handler: *) |
|
public |
async processEventHandlers(eventName: string, args: *): Promise Processes our queue of event handlers for a given eventName. |
Public Methods
public addEventHandler(eventName: *, handler: *) source
Params:
Name | Type | Attribute | Description |
eventName | * | ||
handler | * |
public async processEventHandlers(eventName: string, args: *): Promise source
Processes our queue of event handlers for a given eventName. If a handler returns 'undefined' then we give the next handler the original arguments so that every handler gets to touch the data.
Params:
Name | Type | Attribute | Description |
eventName | string | Event key where the handlers live. |
|
args | * | Arguments. |