You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editorial: define defaults for EventListenerOptions
Although this is also done in prose, this nonetheless simplifies the
prose a bit and makes it clearer to those skimming the standard what is
going on (although skimming is not recommended).
Fixes#239.
<p>The <code class="idl"><a data-link-type="idl" href="#eventtarget">EventTarget</a></code> object represents the target to which an <a data-link-type="dfn" href="#concept-event">event</a> is <a data-link-type="dfn" href="#concept-event-dispatch">dispatched</a> when something has occurred. </p>
<p>If <var>options</var> is a boolean, set <var>capture</var> to <var>options</var>. </p>
762
762
<li>
763
-
<p>If <var>options</var> is a dictionary and <code><code class="idl"><a data-link-type="idl" href="#dom-eventlisteneroptions-capture">capture</a></code></code> is
764
-
present in <var>options</var> with value true, then set <var>capture</var> to true. </p>
763
+
<p>If <var>options</var> is a dictionary, then set <var>capture</var> to <var>options</var>’s <code><code class="idl"><a data-link-type="idl" href="#dom-eventlisteneroptions-capture">capture</a></code></code>. </p>
<p>Let <var>once</var> and <var>passive</var> be false. </p>
775
774
<li>
776
-
<p>If <var>options</var> is a dictionary and <code><code class="idl"><a data-link-type="idl" href="#dom-addeventlisteneroptions-passive">passive</a></code></code> is present in <var>options</var> with value true, then set <var>passive</var> to true. </p>
777
-
<li>
778
-
<p>If <var>options</var> is a dictionary and <code><code class="idl"><a data-link-type="idl" href="#dom-addeventlisteneroptions-once">once</a></code></code> is
779
-
present in <var>options</var> with value true, then set <var>once</var> to true. </p>
775
+
<p>If <var>options</var> is a dictionary, then set <var>passive</var> to <var>options</var>’s <code><code class="idl"><a data-link-type="idl" href="#dom-addeventlisteneroptions-passive">passive</a></code></code> and <var>once</var> to <var>options</var>’s <code><code class="idl"><a data-link-type="idl" href="#dom-addeventlisteneroptions-once">once</a></code></code>. </p>
780
776
<li>
781
777
<p>Return <var>capture</var>, <var>passive</var>, and <var>once</var>. </p>
0 commit comments