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

>  method, when invoked, must run these steps:
>  
>  <ol>
>   <li><p>If <var>callback</var> is null, terminate these steps.
>  
> + <li>Let <var>capture</var> and <var>passive</var> be false.
> +
> + <li>If <var>options</var> is a boolean, set <var>capture</var> to
> + <var>options</var>.
> +
> + <li>If <var>options</var> is a dictionary and <code>{{EventListenerOptions/capture}}</code> is
> + present in <var>options</var> with value true, then set <var>capture</var> to true.
> +
> + <li>If <var>options</var> is a dictionary and <code>{{EventListenerOptions/passive}}</code> is
> + present in <var>options</var> with value true, then set <var>passive</var> to true.

"flatten" perhaps? What you did seems great. Returning multiple values in English feels quite natural and I've done it before without confusing anybody.

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

Received on Monday, 4 January 2016 16:59:45 UTC