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
@@ -65,17 +65,16 @@ export function addAnEventListener(
65
65
*/
66
66
exportfunctionremoveAnEventListener(
67
67
target: Readonly<EventTarget>,
68
-
listener: Readonly<ComparableEventListener>,
68
+
listener: Readonly<ComparableEventListenerLike>,
69
69
registry: EventListenerRegistry,
70
70
): void{
71
71
// 1. If eventTarget is a ServiceWorkerGlobalScope object and its service worker’s set of event types to handle contains listener’s type, then report a warning to the console that this might not give the expected results. [SERVICE-WORKERS]
72
72
73
73
consteventListenerList=registry.get(target);
74
-
if(eventListenerList){
75
-
constkey=toKey(listener);
76
74
75
+
if(eventListenerList){
77
76
// 2. Set listener’s removed to true and remove listener from eventTarget’s event listener list.
0 commit comments