You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
27
-
28
-
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
29
-
30
-
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
31
-
32
-
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
33
-
34
-
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
35
-
36
-
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
37
-
38
-
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
39
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
40
-
*/
41
-
@send
42
-
externaladdEventListenerWithOptions: (
22
+
externaladdEventListener: (
43
23
fontFaceSet,
44
-
eventType,
45
-
eventListener<'event>,
46
-
addEventListenerOptions,
24
+
~type_: eventType,
25
+
~callback: eventListener<'event>,
26
+
~options: addEventListenerOptions=?,
47
27
) =>unit="addEventListener"
48
28
49
29
/**
@@ -63,44 +43,36 @@ The event listener is appended to target's event listener list and is not append
63
43
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
64
44
*/
65
45
@send
66
-
externaladdEventListenerWithUseCapture: (
46
+
externaladdEventListener2: (
67
47
fontFaceSet,
68
-
eventType,
69
-
eventListener<'event>,
70
-
bool,
48
+
~type_: eventType,
49
+
~callback: eventListener<'event>,
50
+
~options: bool=?,
71
51
) =>unit="addEventListener"
72
52
73
53
/**
74
54
Removes the event listener in target's event listener list with the same type, callback, and options.
75
55
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
83
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
84
-
*/
85
-
@send
86
-
externalremoveEventListenerWithOptions: (
58
+
externalremoveEventListener: (
87
59
fontFaceSet,
88
-
eventType,
89
-
eventListener<'event>,
90
-
eventListenerOptions,
91
-
) =>unit="addEventListener"
60
+
~type_: eventType,
61
+
~callback: eventListener<'event>,
62
+
~options: eventListenerOptions=?,
63
+
) =>unit="removeEventListener"
92
64
93
65
/**
94
66
Removes the event listener in target's event listener list with the same type, callback, and options.
95
67
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
96
68
*/
97
69
@send
98
-
externalremoveEventListenerWithUseCapture: (
70
+
externalremoveEventListener2: (
99
71
fontFaceSet,
100
-
eventType,
101
-
eventListener<'event>,
102
-
bool,
103
-
) =>unit="addEventListener"
72
+
~type_: eventType,
73
+
~callback: eventListener<'event>,
74
+
~options: bool=?,
75
+
) =>unit="removeEventListener"
104
76
105
77
/**
106
78
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
36
-
37
-
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
38
-
39
-
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
40
-
41
-
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
42
-
43
-
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
44
-
45
-
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
46
-
47
-
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
48
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
49
-
*/
50
-
@send
51
-
externaladdEventListenerWithOptions: (
31
+
externaladdEventListener: (
52
32
offscreenCanvas,
53
-
eventType,
54
-
eventListener<'event>,
55
-
addEventListenerOptions,
33
+
~type_: eventType,
34
+
~callback: eventListener<'event>,
35
+
~options: addEventListenerOptions=?,
56
36
) =>unit="addEventListener"
57
37
58
38
/**
@@ -72,44 +52,36 @@ The event listener is appended to target's event listener list and is not append
72
52
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
73
53
*/
74
54
@send
75
-
externaladdEventListenerWithUseCapture: (
55
+
externaladdEventListener2: (
76
56
offscreenCanvas,
77
-
eventType,
78
-
eventListener<'event>,
79
-
bool,
57
+
~type_: eventType,
58
+
~callback: eventListener<'event>,
59
+
~options: bool=?,
80
60
) =>unit="addEventListener"
81
61
82
62
/**
83
63
Removes the event listener in target's event listener list with the same type, callback, and options.
84
64
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
92
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
93
-
*/
94
-
@send
95
-
externalremoveEventListenerWithOptions: (
67
+
externalremoveEventListener: (
96
68
offscreenCanvas,
97
-
eventType,
98
-
eventListener<'event>,
99
-
eventListenerOptions,
100
-
) =>unit="addEventListener"
69
+
~type_: eventType,
70
+
~callback: eventListener<'event>,
71
+
~options: eventListenerOptions=?,
72
+
) =>unit="removeEventListener"
101
73
102
74
/**
103
75
Removes the event listener in target's event listener list with the same type, callback, and options.
104
76
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
105
77
*/
106
78
@send
107
-
externalremoveEventListenerWithUseCapture: (
79
+
externalremoveEventListener2: (
108
80
offscreenCanvas,
109
-
eventType,
110
-
eventListener<'event>,
111
-
bool,
112
-
) =>unit="addEventListener"
81
+
~type_: eventType,
82
+
~callback: eventListener<'event>,
83
+
~options: bool=?,
84
+
) =>unit="removeEventListener"
113
85
114
86
/**
115
87
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
28
-
29
-
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
30
-
31
-
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
32
-
33
-
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
34
-
35
-
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
36
-
37
-
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
38
-
39
-
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
40
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
41
-
*/
42
-
@send
43
-
externaladdEventListenerWithOptions: (
23
+
externaladdEventListener: (
44
24
messagePort,
45
-
eventType,
46
-
eventListener<'event>,
47
-
addEventListenerOptions,
25
+
~type_: eventType,
26
+
~callback: eventListener<'event>,
27
+
~options: addEventListenerOptions=?,
48
28
) =>unit="addEventListener"
49
29
50
30
/**
@@ -64,44 +44,36 @@ The event listener is appended to target's event listener list and is not append
64
44
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
65
45
*/
66
46
@send
67
-
externaladdEventListenerWithUseCapture: (
47
+
externaladdEventListener2: (
68
48
messagePort,
69
-
eventType,
70
-
eventListener<'event>,
71
-
bool,
49
+
~type_: eventType,
50
+
~callback: eventListener<'event>,
51
+
~options: bool=?,
72
52
) =>unit="addEventListener"
73
53
74
54
/**
75
55
Removes the event listener in target's event listener list with the same type, callback, and options.
76
56
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
84
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
85
-
*/
86
-
@send
87
-
externalremoveEventListenerWithOptions: (
59
+
externalremoveEventListener: (
88
60
messagePort,
89
-
eventType,
90
-
eventListener<'event>,
91
-
eventListenerOptions,
92
-
) =>unit="addEventListener"
61
+
~type_: eventType,
62
+
~callback: eventListener<'event>,
63
+
~options: eventListenerOptions=?,
64
+
) =>unit="removeEventListener"
93
65
94
66
/**
95
67
Removes the event listener in target's event listener list with the same type, callback, and options.
96
68
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
97
69
*/
98
70
@send
99
-
externalremoveEventListenerWithUseCapture: (
71
+
externalremoveEventListener2: (
100
72
messagePort,
101
-
eventType,
102
-
eventListener<'event>,
103
-
bool,
104
-
) =>unit="addEventListener"
73
+
~type_: eventType,
74
+
~callback: eventListener<'event>,
75
+
~options: bool=?,
76
+
) =>unit="removeEventListener"
105
77
106
78
/**
107
79
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
27
-
28
-
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
29
-
30
-
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
31
-
32
-
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
33
-
34
-
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
35
-
36
-
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
37
-
38
-
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
39
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
40
-
*/
41
-
@send
42
-
externaladdEventListenerWithOptions: (
22
+
externaladdEventListener: (
43
23
clipboard,
44
-
eventType,
45
-
eventListener<'event>,
46
-
addEventListenerOptions,
24
+
~type_: eventType,
25
+
~callback: eventListener<'event>,
26
+
~options: addEventListenerOptions=?,
47
27
) =>unit="addEventListener"
48
28
49
29
/**
@@ -63,44 +43,36 @@ The event listener is appended to target's event listener list and is not append
63
43
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
64
44
*/
65
45
@send
66
-
externaladdEventListenerWithUseCapture: (
46
+
externaladdEventListener2: (
67
47
clipboard,
68
-
eventType,
69
-
eventListener<'event>,
70
-
bool,
48
+
~type_: eventType,
49
+
~callback: eventListener<'event>,
50
+
~options: bool=?,
71
51
) =>unit="addEventListener"
72
52
73
53
/**
74
54
Removes the event listener in target's event listener list with the same type, callback, and options.
75
55
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
Removes the event listener in target's event listener list with the same type, callback, and options.
83
-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
84
-
*/
85
-
@send
86
-
externalremoveEventListenerWithOptions: (
58
+
externalremoveEventListener: (
87
59
clipboard,
88
-
eventType,
89
-
eventListener<'event>,
90
-
eventListenerOptions,
91
-
) =>unit="addEventListener"
60
+
~type_: eventType,
61
+
~callback: eventListener<'event>,
62
+
~options: eventListenerOptions=?,
63
+
) =>unit="removeEventListener"
92
64
93
65
/**
94
66
Removes the event listener in target's event listener list with the same type, callback, and options.
95
67
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
96
68
*/
97
69
@send
98
-
externalremoveEventListenerWithUseCapture: (
70
+
externalremoveEventListener2: (
99
71
clipboard,
100
-
eventType,
101
-
eventListener<'event>,
102
-
bool,
103
-
) =>unit="addEventListener"
72
+
~type_: eventType,
73
+
~callback: eventListener<'event>,
74
+
~options: bool=?,
75
+
) =>unit="removeEventListener"
104
76
105
77
/**
106
78
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
0 commit comments