-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twiddle text node to trigger ASAP flush #171
Conversation
Some buggy browsers or polyfills will not trigger a mutation if an attribute is set to the same value.
This seems reasonable, but I want to understand if this is a bug in those polyfils or a fundamental limitation. I suspect a limitation. I don't see any downside to this change, but as this scenario may not be entirely obvious a small inline comment would be appreciated. |
For We could keep the |
@josh seems good, lets give it a try :) |
Twiddle text node to trigger ASAP flush
Rad. Hoping to have github.com running the Promises polyfill by the end of the week. |
nice! |
@josh although not general purpose yet, you might want to checkout our WIP promise tooling: emberjs/ember-inspector#76 |
Some buggy
MutationObserver
implementations or polyfills may not trigger a mutation when an attribute is just set again to the same value.This text node twiddle approach is based on Polymer's microtask.js.
Fixes #170
Related
/cc @jakearchibald @azakus