-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Record property changes #3216
Conversation
continue; | ||
} | ||
|
||
if (original[key] !== value) { |
There was a problem hiding this comment.
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
12ae462
to
5022be7
Compare
_changedKeys: function(updates) { | ||
var changedKeys = []; | ||
|
||
if (updates && typeof updates === 'object') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why typeof updates === 'object')
5022be7
to
cd43c95
Compare
@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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
This is a rebased and cleaned version of #2998.
Closes #2937.
Closes #2900.
Closes #2998.