[RFC]Event Emitter Chain #805
mortalYoung
started this conversation in
Ideas
Replies: 1 comment
-
It's unnecessary to call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
It was started from a bug about the users couldn't stop the default behavior of closing tab, because we defined it in Molecule, and users couldn't interfere with it. There were two ways to resolve it.
Every event starts with
on
in Molecule are all based on event emitter. And events are just like chains pending to executed.Proposals
this.stopDelivery()
Changes
this.stopDelivery()
to stop the following event executed.this.async()
first to call event runner waitting for current event.Beta Was this translation helpful? Give feedback.
All reactions