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

[BUGFIX release] Fix descriptorFor to support fallback #16653

Merged
merged 2 commits into from
May 19, 2018
Merged

Conversation

krisselden
Copy link
Contributor

Ensure all fallback cases are deprecated.

Fixes #16427 and add test for notifyPropertyChange not working for plain obj.

Test that a CP descriptor still works with notifyPropertyChange
when it is not setup correctly via Ember.defineProperty.
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add tests for the deprecated things. Adding a CP as a property on a POJO or something, then calling get, confirm the deprecation, confirm that we can updated a dep key and have the CP recompute, etc (same for set first).

currentValue.setup(obj, keyName);
}

return currentValue.get(obj, keyName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t we want to call currentValue.set(obj, keyName, value)? Why would we call .get?

Setup a non setup descriptor on access.
@rwjblue rwjblue merged commit 2e6edc5 into master May 19, 2018
@rwjblue rwjblue deleted the pr16602 branch May 19, 2018 00:54
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.

3 participants