Re: [dom] Add EventListenerOptions and passive event listeners (#82)

>  </ol>
>  
>  <p>The
> -<dfn method for=EventTarget><code>removeEventListener(<var>type</var>, <var>callback</var>, <var>capture</var>)</code></dfn>
> -method, when invoked, must, if there is an <a>event listener</a> in the associated list of
> -<a>event listeners</a> whose <b>type</b> is <var>type</var>, <b>callback</b> is <var>callback</var>,
> -and <b>capture</b> is <var>capture</var>, set that <a>event listener</a>'s <b>removed flag</b> and
> -remove it from the associated list of <a>event listeners</a>.
> +<dfn method for=EventTarget><code>removeEventListener(<var>type</var>, <var>callback</var>, <var>options</var>)</code></dfn>
> +method, when invoked, must, run these steps
> +
> +<ol>
> + <li>If <var>options</var> is of type boolean, let <var>capture</var> be
> + <var>options</var> and let <var>passive</var> be false.  Otherwise let
> + <var>capture</var> and <var>passive</var> be the corresponding values in the
> + <var>options</var> {{EventListenerOptions}} dictionary.

Done

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/82/files#r47688722

Received on Tuesday, 15 December 2015 19:56:35 UTC