Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchris committed Feb 7, 2019
1 parent 9c02fae commit 3b04bf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,12 @@ Follow the <a href="https://www.w3.org/2001/tag/doc/promises-guide#one-time-even
in the <strong><a href="https://www.w3.org/2001/tag/doc/promises-guide">Writing
Promise-Using Specifications</a></strong> guideline.

<h3 id="promises-and-events">Events should fire before promises resolve</h3>

In the case that an event is being dispatched as part of a promise being
resolved, then the event should be dispatched before the promise resolves, rather
than after.

<h3 id="dont-invent-event-like">Don't invent your own event listener-like infrastructure</h3>

For recurring events, it could be convenient to create a custom pair of APIs to
Expand Down

0 comments on commit 3b04bf6

Please sign in to comment.