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

Fix a test for view controller property #10991

Merged

Conversation

mitchlloyd
Copy link
Contributor

It is tempting to add an observer or use a dependent key for ‘childViews’ on the controller computed property in ‘view_context_support.js’. However, doing this results in a lot of MANDITORY_SETTER errors since there are a few places in the code that set ‘childViews’ directly.

Notify the view of a possible controller change when its parentView changes.

rwjblue added a commit that referenced this pull request May 1, 2015
Fix a test for view controller property
@rwjblue rwjblue merged commit 5725b5c into emberjs:idempotent-rerender May 1, 2015
@mmun
Copy link
Member

mmun commented May 1, 2015

👍

@sly7-7
Copy link
Contributor

sly7-7 commented Jul 2, 2015

Migrating from 1.11 to 1.13, this notification causes some observers to be fired, even if the controller did not changed at all.
As a consequence, for now I have to put defensive checks in all my observers in the views, (checking the view state), and were unnecessary before.
Also, maybe this could be the cause of #11530

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