Static
emittedAn array of event types which are valid for this class.
Add a new event listener for a certain type of event.
The type of event being registered for
The listener function called when the event occurs
Optional
options: { once?: boolean } = {}Options which configure the event listener
Optional
once?: booleanShould the event only be responded to once and then removed
Dispatch an event on this target.
The Event to dispatch
Was default behavior for the event prevented?
Remove an event listener for a certain type of event.
The type of event being removed
The listener function being removed
A mixin class which implements the behavior of EventTarget. This is useful in cases where a class wants EventTarget-like behavior but needs to extend some other class.
See
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget