chromium / axiom

Axiom Project
https://chromium.github.io/axiom/web_shell/
Apache License 2.0
53 stars 26 forks source link

Eliminate possibility of endless event loop in AxiomEvent.listenOnce #225

Closed ussuri closed 9 years ago

ussuri commented 9 years ago

@umop

Simplified code:

eventA.listenOnce(function() { eventB.fire(); });
eventB.listenOnce(function() { eventA.fire(); });

This works with this change, but hangs in an infinite loop without it.

rpaquay commented 9 years ago

lgtm

umop commented 9 years ago

lgtm