Skip to content
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

[GLIMMER] Prevent auto-run assertion for objects not rendered. #14093

Merged

Conversation

chancancode
Copy link
Member

Like #14091, but skip bumping revision altogether.

One of the invariants of the validators system is that whenever anything in the system has changed, the global revision must be incremented. However, we could define "the system" to be "the templating system", which restricts "anything in the system" to "anything objects observable from the templating system".

Since we always put a tag on everything the templating system cares about (i.e. we don't rely on CURRENT_TAG as a safety net anymore), if an object does not already have a tag, it must mean that the view system doesn't care about it (yet).

Prior to this change any `Ember.set` done after **any** rendering has
been done during tests will trigger the auto-run assertion.

This change prevents the auto-run assertion when a given object has not
been used in rendering process.
@rwjblue rwjblue merged commit 938ad1a into master Aug 19, 2016
@rwjblue rwjblue deleted the prevent-auto-run-assertions-for-objects-not-in-templates branch August 19, 2016 12:55
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.

2 participants