Skip to content

Commit

Permalink
Correct info about AbortSignal usage in addEventListener (#37607)
Browse files Browse the repository at this point in the history
Correct info about AbortSignals in addEventListener
  • Loading branch information
jeremyredhead authored Jan 12, 2025
1 parent 99a4400 commit 8f4599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/eventtarget/addeventlistener/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ addEventListener(type, listener, useCapture)
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.

- `signal` {{optional_inline}}
- : 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.
- : 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.

- `useCapture` {{optional_inline}}

Expand Down

0 comments on commit 8f4599c

Please sign in to comment.