Skip to content

Commit f97b360

Browse files
LukeZielinskiannevk
authored andcommitted
Add a note about duplicate event listeners for removeEventListener()
Fixes #664.
1 parent ea4708a commit f97b360

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dom.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,10 @@ method, when invoked, must run these steps:
12161216
with the <a>context object</a> and that <a>event listener</a>.
12171217
</ol>
12181218

1219+
<p class=note>The event listener list will not contain multiple event listeners with equal
1220+
<var>type</var>, <var>callback</var>, and <var>capture</var>, as <a>add an event listener</a>
1221+
prevents that.
1222+
12191223
<p>The <dfn method for=EventTarget><code>dispatchEvent(<var>event</var>)</code></dfn> method, when
12201224
invoked, must run these steps:
12211225

@@ -10037,6 +10041,7 @@ Kirill Topolyan,
1003710041
Koji Ishii,
1003810042
Lachlan Hunt,
1003910043
Lauren Wood,
10044+
Luke Zielinski,
1004010045
Magne Andersson,
1004110046
Majid Valipour,
1004210047
Malte Ubl,

0 commit comments

Comments
 (0)