Class EventDispatcher<TEventMap>
Type Parameters
- TEventMap extends {} = {}
Constructors
constructor
- new EventDispatcher<TEventMap>(): EventDispatcher<TEventMap>
Type Parameters
- TEventMap extends {} = {}
Methods
addEventListener
- addEventListener<T>(type, listener): void
Returns void
- addEventListener<T>(type, listener): void
Returns void
dispatchEvent
- dispatchEvent<T>(event): void
Returns void
hasEventListener
- hasEventListener<T>(type, listener): boolean
Returns boolean
- hasEventListener<T>(type, listener): boolean
Returns boolean
removeEventListener
- removeEventListener<T>(type, listener): void
Returns void
- removeEventListener<T>(type, listener): void
Returns void
JavaScript events for custom objects
Example
See