View source
class EventTarget
package js.node.web
extended by Performance, AbortSignal, BroadcastChannel, EventSource, MessagePort, WebSocket
Constructor
Methods
addEventListener(type:String, listener:Function, ?options:EitherType<AddEventListenerOptions, Bool>):Void
addEventListener(type:String, listener:EventListener, ?options:EitherType<AddEventListenerOptions, Bool>):Void
Adds a new handler for the type event.
Any given listener is added only once per type and per capture option value.
dispatchEvent(event:Event):Bool
removeEventListener(type:String, listener:Function, ?options:EitherType<EventListenerOptions, Bool>):Void
removeEventListener(type:String, listener:EventListener, ?options:EitherType<EventListenerOptions, Bool>):Void
Removes the listener from the list of handlers for event type.