Skip to content

Commit

Permalink
Add a note about duplicate event listeners for removeEventListener()
Browse files Browse the repository at this point in the history
Fixes #664.
  • Loading branch information
LukeZielinski authored and annevk committed Jan 11, 2019
1 parent ea4708a commit f97b360
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,10 @@ method, when invoked, must run these steps:
with the <a>context object</a> and that <a>event listener</a>.
</ol>

<p class=note>The event listener list will not contain multiple event listeners with equal
<var>type</var>, <var>callback</var>, and <var>capture</var>, as <a>add an event listener</a>
prevents that.

<p>The <dfn method for=EventTarget><code>dispatchEvent(<var>event</var>)</code></dfn> method, when
invoked, must run these steps:

Expand Down Expand Up @@ -10037,6 +10041,7 @@ Kirill Topolyan,
Koji Ishii,
Lachlan Hunt,
Lauren Wood,
Luke Zielinski,
Magne Andersson,
Majid Valipour,
Malte Ubl,
Expand Down

0 comments on commit f97b360

Please sign in to comment.