From 8f4599ce0c63ac1c260933b1458e4da33ce972d5 Mon Sep 17 00:00:00 2001 From: "j. redhead" Date: Sat, 11 Jan 2025 20:08:54 -0600 Subject: [PATCH] Correct info about AbortSignal usage in addEventListener (#37607) Correct info about AbortSignals in addEventListener --- files/en-us/web/api/eventtarget/addeventlistener/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/eventtarget/addeventlistener/index.md b/files/en-us/web/api/eventtarget/addeventlistener/index.md index 4191c374ecb1e91..f1342dc124838aa 100644 --- a/files/en-us/web/api/eventtarget/addeventlistener/index.md +++ b/files/en-us/web/api/eventtarget/addeventlistener/index.md @@ -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}}