- From: Rick Byers <notifications@github.com>
- Date: Mon, 04 Jan 2016 08:35:08 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Message-ID: <whatwg/dom/pull/82/r48749561@github.com>
> 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. I attempted that [here](https://github.com/RByers/dom/commit/e3a2df3c7df30d68247d758c7f746ed76375b92c#diff-a467e681501e456ce8c1ef31425e1b41R1052) and I agree it looks cleaner, thanks! I couldn't find another example of returning multiple values, is what I've done precise enough? Any suggestion for a term better than "normalize" (which could perhaps be confused with Node.normalize)? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/82/files#r48749561
Received on Monday, 4 January 2016 16:35:38 UTC