Skip to content

Commit 8f4599c

Browse files
Correct info about AbortSignal usage in addEventListener (#37607)
Correct info about AbortSignals in addEventListener
1 parent 99a4400 commit 8f4599c

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/api/eventtarget/addeventlistener

1 file changed

+1
-1
lines changed

files/en-us/web/api/eventtarget/addeventlistener/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ addEventListener(type, listener, useCapture)
7979
If this option is not specified it defaults to `false` – except that in browsers other than Safari, it defaults to `true` for {{domxref("Element/wheel_event", "wheel")}}, {{domxref("Element/mousewheel_event", "mousewheel")}}, {{domxref("Element/touchstart_event", "touchstart")}} and {{domxref("Element/touchmove_event", "touchmove")}} events. See [Using passive listeners](#using_passive_listeners) to learn more.
8080

8181
- `signal` {{optional_inline}}
82-
- : An {{domxref("AbortSignal")}}. The listener will be removed when the given `AbortSignal` object's {{domxref("AbortController/abort()", "abort()")}} method is called. If not specified, no `AbortSignal` is associated with the listener.
82+
- : An {{domxref("AbortSignal")}}. The listener will be removed when the {{domxref("AbortController/abort()", "abort()")}} method of the {{domxref("AbortController")}} which owns the `AbortSignal` is called. If not specified, no `AbortSignal` is associated with the listener.
8383

8484
- `useCapture` {{optional_inline}}
8585

0 commit comments

Comments
 (0)