- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 01 Jan 2016 08:29:09 -0800
- To: whatwg/dom <dom@noreply.github.com>
Received on Friday, 1 January 2016 16:29:40 UTC
> 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. Since these four steps are repeated below I feel like we should introduce an abstract operation that returns two values for capture and passive given a dictionary or boolean. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/82/files#r48678681
Received on Friday, 1 January 2016 16:29:40 UTC