- From: Timothy Gu <notifications@github.com>
- Date: Wed, 04 Jul 2018 07:46:40 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/issues/664@github.com>
> The <a href="https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener">**<code>removeEventListener(*type*, *callback*, *options*)</code>**</a> method, when invoked, must run these steps: > > … > > 3. If the context object’s [event listener list](https://dom.spec.whatwg.org/#eventtarget-event-listener-list) [contains](https://infra.spec.whatwg.org/#list-contain) an [event listener](https://dom.spec.whatwg.org/#concept-event-listener) whose type is *type*, callback is *callback*, and capture is *capture*, then <a href="https://dom.spec.whatwg.org/#remove-an-event-listener">remove an event listener</a> with the context object and that event listener. > A [list](https://infra.spec.whatwg.org/#list) [**contains**](https://infra.spec.whatwg.org/#list-contain) an [item](https://infra.spec.whatwg.org/#list-item) if it appears in the list. What happens if there are multiple event listeners in the `EventTarget` object's event listener list that fit those searching criteria (type, callback, capture)? Is the searching process in ascending or descending order? The order is observable through the use of the [`passive`](https://dom.spec.whatwg.org/#dom-addeventlisteneroptions-passive) and [`once`](https://dom.spec.whatwg.org/#dom-addeventlisteneroptions-once) options. Inspired by nodejs/node#21635. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/664
Received on Wednesday, 4 July 2018 14:47:02 UTC