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

Record property changes #3216

Merged
merged 2 commits into from
Jun 8, 2015
Merged

Record property changes #3216

merged 2 commits into from
Jun 8, 2015

Conversation

bmac
Copy link
Member

@bmac bmac commented Jun 5, 2015

This is a rebased and cleaned version of #2998.

Closes #2937.
Closes #2900.
Closes #2998.

continue;
}

if (original[key] !== value) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we switch this to use Ember.isEqual while we're at it? http://emberjs.com/api/#method_isEqual

@bmac bmac force-pushed the record-property-changes branch from 12ae462 to 5022be7 Compare June 5, 2015 15:04
_changedKeys: function(updates) {
var changedKeys = [];

if (updates && typeof updates === 'object') {
Copy link
Member

Choose a reason for hiding this comment

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

why typeof updates === 'object')

@bmac bmac force-pushed the record-property-changes branch from 5022be7 to cd43c95 Compare June 8, 2015 16:52
@bmac
Copy link
Member Author

bmac commented Jun 8, 2015

@igorT I have updated this pr to address your comments.

/**
@method _changedKeys

Ember Data has 3 buckets for storing the value of an attribute on an internalModel.
Copy link
Member

Choose a reason for hiding this comment

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

❤️

igorT added a commit that referenced this pull request Jun 8, 2015
@igorT igorT merged commit 5eaf2f0 into emberjs:master Jun 8, 2015
@bmac bmac deleted the record-property-changes branch June 16, 2015 20:21
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.

None yet

4 participants