Skip to content

Commit

Permalink
define a "have a listener for" concept on EventTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
gterzian committed Aug 8, 2018
1 parent 32efc48 commit d7f3e7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,10 @@ and a <dfn export for=EventTarget>legacy-canceled-activation behavior</dfn> algo
<p class="note no-backref">These algorithms only exist for checkbox and radio <{input}> elements and
are not to be used for anything else. [[!HTML]]

<p>An {{EventTarget}} object <var>target</var> is said to <dfn export>have a listener for</dfn>
<var>type</var> if <var>target</var>'s <a>event listener list</a> <a for=list>contains</a> an
<a>event listener</a> whose <a for="event listener">type</a> is <var>type</var>.

<dl class=domintro>
<dt><code><var>target</var> = new <a constructor for=EventTarget lt=EventTarget()>EventTarget</a>();</code>
<dd><p>Creates a new {{EventTarget}} object, which can be used by developers to <a>dispatch</a> and
Expand Down

0 comments on commit d7f3e7f

Please sign in to comment.