Class EventDispatcher<TEventMap>
Type Parameters
- TEventMap extends {} = {}
Constructors
Methods
addEventListener
- addEventListener<T>(type, listener): void
Returns void
dispatchEvent
- dispatchEvent<T>(event): void
Returns void
hasEventListener
- hasEventListener<T>(type, listener): boolean
Returns boolean
removeEventListener
- removeEventListener<T>(type, listener): void
Returns void
事件派发类
Example
See
mrdoob EventDispatcher on GitHub