Skip to content

[BUGFIX release] Fix descriptorFor to support fallback - #16653

Merged
rwjblue merged 2 commits into
masterfrom
pr16602
May 19, 2018
Merged

rwjblue merged 2 commits into
masterfrom
pr16602

Conversation

@krisselden

Copy link
Copy Markdown
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.

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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