EventDispatcher
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public set |
|
|
public get |
listeners: * |
Private Members | ||
private |
_listeners: * |
Method Summary
Public Methods | ||
public |
addEventListener(type: *, listener: *): * |
|
public |
dispatchEvent(eventName: *, eventTarget: *): * |
|
public |
hasEventListener(type: *): * |
|
public |
removeAllEventListeners(type: *) |
|
public |
removeEventListener(type: *, listener: *) |
Public Constructors
public constructor() source
Public Members
public set listeners source
public get listeners: * source
Private Members
private _listeners: * source
Public Methods
public addEventListener(type: *, listener: *): * source
Params:
Name | Type | Attribute | Description |
type | * | ||
listener | * |
Return:
* |
public dispatchEvent(eventName: *, eventTarget: *): * source
Params:
Name | Type | Attribute | Description |
eventName | * | ||
eventTarget | * |
Return:
* |
public removeAllEventListeners(type: *) source
Params:
Name | Type | Attribute | Description |
type | * |
public removeEventListener(type: *, listener: *) source
Params:
Name | Type | Attribute | Description |
type | * | ||
listener | * |