EventTarget

EventTarget is an interface implemented by objects that can receive events and may have listeners for them.

Documentation EventTarget by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

addEventListener(type: String, listener: haxe.Function, ?options: haxe.extern.EitherType<AddEventListenerOptions, Bool>, ?wantsUntrusted: Bool): Void

Register an event handler of a specific event type on the EventTarget.

Name Type Default
type String
listener haxe.Function
options haxe.extern.EitherType<AddEventListenerOptions, Bool> (optional)
wantsUntrusted Bool (optional)

removeEventListener(type: String, listener: haxe.Function, ?options: haxe.extern.EitherType<EventListenerOptions, Bool>): Void

Removes an event listener from the EventTarget.

Name Type Default
type String
listener haxe.Function
options haxe.extern.EitherType<EventListenerOptions, Bool> (optional)

dispatchEvent(event: Event): Bool

Dispatch an event to this EventTarget.

Name Type
event Event
Returns
Bool

new(): Void