Re:Push API – W3C Working Draft
by AgentME on Monday October 27, 2014 @01:01PM
(#8516667)
For an event that only happens once, then the
version is preferable to
because A) you don't have to worry about removing your event listener after the fact, and B) if the event has already happened, then your callback will be called immediately.
[ Parent
| on HN ]
There are no comments on this comment yet.