Skip to content

Don't spin up extra run-loops when bubbling events. Fixes #11540 - #12075

Merged
stefanpenner merged 1 commit into
emberjs:masterfrom
runspired:event-runloop-fix
Sep 9, 2015
Merged

stefanpenner merged 1 commit into
emberjs:masterfrom
runspired:event-runloop-fix

Conversation

@runspired

Copy link
Copy Markdown
Contributor

Fixes #11540

@rwjblue

rwjblue commented Aug 13, 2015

Copy link
Copy Markdown
Member

Seems good to me, @stefanpenner r?

@stefanpenner

Copy link
Copy Markdown
Member

I plan to review in the morning. Unless there is s big rush tonight. If so I can gladly look into shortly

@rwjblue

rwjblue commented Aug 13, 2015

Copy link
Copy Markdown
Member

No huge rush. Can go into [BUGFIX beta] tomorrow (for 2.1).

@rwjblue

rwjblue commented Aug 15, 2015

Copy link
Copy Markdown
Member

I kicked sauce labs.

@stefanpenner - Whenever you have a chance, I'd love your 👍 / 👎 here...

@rwjblue

rwjblue commented Aug 22, 2015

Copy link
Copy Markdown
Member

@stefanpenner - r?

@rwjblue

rwjblue commented Sep 9, 2015

Copy link
Copy Markdown
Member

@stefanpenner - 👍 / 👎?

@stefanpenner

Copy link
Copy Markdown
Member

This fixes up the immediate concern so 👍

This doesn't prevent bubbling from spawning many loops per user action.

For example:

given the following hierarchy root < a < b < c

if a and b have click handlers, and c returns true, a will gets its own run-loop. This isn't desirable.

@runspired I believe due to how we currently integrate with jQuery prevent ^ in the same micro-task is tricky/not possible. To sort this out, I suspect taking your approach re: home-grown event-dispatcher is key.

stefanpenner added a commit that referenced this pull request Sep 9, 2015
Don't spin up extra run-loops when bubbling events.  Fixes #11540
@stefanpenner
stefanpenner merged commit 60ab022 into emberjs:master Sep 9, 2015
@asakusuma

Copy link
Copy Markdown
Contributor

Thanks @runspired!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants