The currentTarget read-only property of the Event interface identifies the element to which the event handler has been attached.
The eventPhase read-only property of the being evaluated.
Flag for fast type checking.
The read-only target property of the dispatched.
Reset the event to default values. Used by the event system.
A reference to this event.
Set the current target of the event. Used by the event system.
A reference to this event.
Set the event phase of the event. Used by the event system.
A reference to this event.
Set the target of the event. Used by the event system.
A reference to this event.
Static[hasStaticdumpEmptys the depot of a given type, leaving the events for the garbage collector.
StaticdumpEmptys all depots, leaving all events to the garbage collector.
StaticgetFetches an event of the requested type and initialization from the depot. If the depot for the requested type is empty it returns a new instance. Use RecyclableEvent.store after dispatching the event to store it for reuse.
Staticstore
A subclass of Event that can be (re)used via RecyclableEvent.get and RecyclableEvent.store to avoid garbage collection. If dispatched repeatedly without recycling through get/store, call recycle manually before each dispatch. Exposes some readonly properties of the event class as writable properties for the event system.
Example get/store:
Example manual recycle:
Author
Jonas Plotzky, HFU, 2025