Skip to content

Commit

Permalink
Editorial: break from the inner invoke loop rather than returning
Browse files Browse the repository at this point in the history
This is slightly cleaner and less confusing (to me anyway).
  • Loading branch information
annevk committed Nov 19, 2024
1 parent c2d5aa3 commit bb30d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1655,8 +1655,8 @@ and an optional <var>legacyOutputDidListenersThrowFlag</var>, run these steps:
<li><p>If <var>global</var> is a {{Window}} object, then set <var>global</var>'s
<a for=Window>current event</a> to <var>currentEvent</var>.

<li><p>If <var>event</var>'s <a>stop immediate propagation flag</a> is set, then return
<var>found</var>.
<li><p>If <var>event</var>'s <a>stop immediate propagation flag</a> is set, then
<a for=iteration>break</a>.
</ol>

<li><p>Return <var>found</var>.
Expand Down

0 comments on commit bb30d16

Please sign in to comment.