Home > @rainway/web > EventEmitter
EventEmitter class
Event emitter
Signature:
export declare class EventEmitter<TEvents extends EventProvider<TEvents>>
Methods
Method | Modifiers | Description |
---|---|---|
addEventListener(eventName, handler) | Add an event listener for a particular event type. | |
emit(eventName, args) | protected | Emit an event of the given type. |
removeAllEventListeners() | Remove all event listeners. | |
removeEventListener(eventName, handler) | Remove an event listener for a particular event type. |