Events
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
Private Members | ||
private |
_countErrorUnknowns: number |
|
private |
_eventCallbacks: {} |
|
private |
_listeners: {} |
|
private |
_logEvents: boolean |
|
private |
_logName: string |
Method Summary
Public Methods | ||
public |
addEventListener(which: *, cb: *, idPrefix: string): * this method was deprecated.
|
|
public |
emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *) emit event |
|
public |
hasEventListener(id: string, cb: function): boolean check event listener registration |
|
public |
hasListenerForEventName(eventName: *): boolean check event listener by name |
|
public |
logEvents(enabled: boolean, logName: string) enable/disable logging of events for the class |
|
public |
off(id: string) remove event listener registration |
|
public |
on(which: string, cb: function, idPrefix: string): string add event listener |
|
public |
removeEventListener(id: *): * this method was deprecated.
|
Public Constructors
public constructor() source
Public Members
public : * source
Private Members
private _countErrorUnknowns: number source
private _eventCallbacks: {} source
private _listeners: {} source
private _logEvents: boolean source
private _logName: string source
Public Methods
public addEventListener(which: *, cb: *, idPrefix: string): * source
Params:
Name | Type | Attribute | Description |
which | * | ||
cb | * | ||
idPrefix | string |
|
Return:
* |
public emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *) source
emit event
Params:
Name | Type | Attribute | Description |
which | string | event name |
|
param1 | * | ||
param2 | * | ||
param3 | * | ||
param4 | * | ||
param5 | * | ||
param6 | * |
public hasEventListener(id: string, cb: function): boolean source
check event listener registration
Params:
Name | Type | Attribute | Description |
id | string | event id |
|
cb | function | callback - deprecated |
Return:
boolean |
public hasListenerForEventName(eventName: *): boolean source
check event listener by name
Params:
Name | Type | Attribute | Description |
eventName | * | event name |
Return:
boolean |
public logEvents(enabled: boolean, logName: string) source
enable/disable logging of events for the class
Params:
Name | Type | Attribute | Description |
enabled | boolean | ||
logName | string |
public off(id: string) source
remove event listener registration
Params:
Name | Type | Attribute | Description |
id | string | event id |
public on(which: string, cb: function, idPrefix: string): string source
add event listener
Params:
Name | Type | Attribute | Description |
which | string | event name |
|
cb | function | callback |
|
idPrefix | string | prefix for id, default empty |
Return:
string | event id |
public removeEventListener(id: *): * source
Params:
Name | Type | Attribute | Description |
id | * |
Return:
* |