Skip to content

Commit

Permalink
Rename InternalModel.rollback() to InternalModel.rollbackAttributes()
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroicEric committed Jun 12, 2015
1 parent 78564c1 commit 661add3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ember-data/lib/system/model/internal-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ InternalModel.prototype = {
}
},

rollback: function() {
rollbackAttributes: function() {
var dirtyKeys = Ember.keys(this._attributes);

this._attributes = Ember.create(null);
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-data/lib/system/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ var Model = Ember.Object.extend(Ember.Evented, {
@method rollbackAttributes
*/
rollbackAttributes: function() {
this._internalModel.rollback();
this._internalModel.rollbackAttributes();
},

/*
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-data/lib/system/model/states.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ var RootState = {
},

rollback: function(internalModel) {
internalModel.rollback();
internalModel.rollbackAttributes();
internalModel.triggerLater('ready');
},

Expand Down

0 comments on commit 661add3

Please sign in to comment.