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 unconsistent behavior in Model.changedAttributes #3582

Merged
merged 1 commit into from
Jul 25, 2015

Conversation

cibernox
Copy link
Contributor

closes #3579

@@ -611,7 +613,9 @@ var Model = Ember.Object.extend(Ember.Evented, {
*/
changedAttributes: function() {
var oldData = get(this._internalModel, '_data');
var newData = get(this._internalModel, '_attributes');
var currentData = get(this._internalModel, '_attributes');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, I wonder why here we have to use get instead of just this._internalModel._whatever

@cibernox
Copy link
Contributor Author

Updated

@bmac
Copy link
Member

bmac commented Jul 24, 2015

Looks good. 👍

@cibernox
Copy link
Contributor Author

Fixed a typo. Now it's done

bmac added a commit that referenced this pull request Jul 25, 2015
[BUGFIX release] Fix unconsistent behavior in Model.changedAttributes
@bmac bmac merged commit 9c83224 into emberjs:master Jul 25, 2015
@bmac
Copy link
Member

bmac commented Jul 25, 2015

Thanks @cibernox

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.

model.changedAttributes() behaves inconsistently
2 participants