Static variables
Constructor
Variables
cancelBubble:Bool
Deprecated: "Use stopPropagation() instead"
Alias for stopPropagation() if set to true.
Stability: 3 - Legacy.
read onlyeventPhase:Int
Returns 0 while an event is not being dispatched, 2 while it is being dispatched.
This is not used in Node.js and is provided purely for completeness.
returnValue:Bool
Deprecated: "Use defaultPrevented instead"
True if the event has not been canceled.
Stability: 3 - Legacy.
read onlysrcElement:EventTarget
Deprecated: "Use target instead"
Alias for target.
Stability: 3 - Legacy.
Methods
composedPath():Array<EventTarget>
Returns an array containing the current EventTarget as the only entry,
or empty if the event is not being dispatched.
This is not used in Node.js and is provided purely for completeness.
initEvent(type:String, ?bubbles:Bool, ?cancelable:Bool):Void
Deprecated: "Use the Event constructor instead"
Redundant with event constructors and incapable of setting composed.
Stability: 3 - Legacy. The WHATWG spec considers it deprecated.
stopImmediatePropagation():Void
Stops the invocation of event listeners after the current one completes.