diff --git a/spec.bs b/spec.bs index 4c0914c..8bcb692 100644 --- a/spec.bs +++ b/spec.bs @@ -1811,11 +1811,12 @@ partial interface EventTarget { :: false : [=event listener/signal=] - :: null + :: |subscriber|'s [=Subscriber/subscription controller=]'s [=AbortController/signal=] - Note: The {{AbortSignal}} for event listeners [=add an event listener|added=] by - {{EventTarget/when()}} is managed by the {{Observable}} itself. See - {{Observable/subscribe()}} and {{SubscribeOptions}}. + Note: To ensure that the [=event listener=] is cleaned up when + [=Subscriber/subscription controller=]'s [=AbortController/signal=] is [=AbortSignal/aborted=]. + Preventing listener leaks regardless of whether {{Observable}} or {{EventTarget}} depending on + ownership model in engines. 1. Return |observable|.