MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / Event

Class Event

python/pythonmonkey/builtin_modules/event-target.js:17–94  ·  view source on GitHub ↗

* The Event interface represents an event which takes place in the DOM. * @see https://developer.mozilla.org/en-US/docs/Web/API/Event

Source from the content-addressed store, hash-verified

15 * @see https://developer.mozilla.org/en-US/docs/Web/API/Event
16 */
17class Event
18{
19 /**
20 * Indicates whether the event bubbles up through the DOM tree or not.
21 * @type {Boolean}
22 */
23 bubbles = false;
24
25 /**
26 * Indicates whether the event is cancelable.
27 * @type {Boolean}
28 */
29 cancelable = true;
30
31 /**
32 * Indicates whether the event can bubble across the boundary between the shadow DOM and the regular DOM.
33 * @type {Boolean}
34 */
35 composed = false;
36
37 /**
38 * The element to which the event handler has been attached.
39 * @type {EventTarget}
40 */
41 currentTarget = null;
42
43 /**
44 * Indicates whether the call to event.preventDefault() canceled the event.
45 * @type {Boolean}
46 */
47 devaultPrevented = false;
48
49 /**
50 * Indicates which phase of the event flow is currently being evaluated.
51 * @type {Number}
52 */
53 eventPhase = Event.NONE;
54 static NONE = 0; // The event is not being processed
55 static CAPTURING_PHASE = 1; // The event is being propagated through the target's ancestor objects
56 static AT_TARGET = 2; // The event has arrived at the event's target
57 static BUBBLING_PHASE = 3; // The event is propagating back up through the target's ancestors in reverse order, starting with the parent
58
59 /**
60 * Indicates whether the event was initiated by the browser or by a script.
61 * @type {Boolean}
62 */
63 isTrusted = false;
64
65 /**
66 * A reference to the object to which the event was originally dispatched.
67 * @type {EventTarget}
68 */
69 target = null;
70
71 /**
72 * The time at which the event was created (in milliseconds). By specification, this value is time since epoch.
73 * @type {Number}
74 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected