Retrieve the registered event types.
Array of event types.
Add a new event listener to the event type.
The type of event to listen to.
The function that gets called when the event is fired.
Dispatch the event to the registered listeners.
The event to dispatch.
Destroy this EventDispatcher
instance.
Unregister all event handlers used. This is method should be called when you stop
using EventDispatcher
.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Retrieve the registered listeners to the specified event.
The type of event to listen to.
Array of event listeners.
Remove all event listeners for housekeeping.
Remove the listener from the event type.
The type of event to listen to.
The function that gets called when the event is fired. If the value is
undefined
, all listeners will be removed.
Generated using TypeDoc
JavaScript events for custom objects. Stores all listeners to allow removing all listeners for housekeeping.
Will be replaced by
THREE.EventDispatcher
once https://github.com/mrdoob/three.js/pull/19844 is released.