Skip to content

Commit

Permalink
Merge pull request #3110 from tonywok/master
Browse files Browse the repository at this point in the history
Cleanup unused 'materialize' records in model
  • Loading branch information
igorT committed May 28, 2015
2 parents 8eb34b8 + 75d7d8d commit 5d7c15f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/ember-data/lib/system/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,19 +971,6 @@ var Model = Ember.Object.extend(Ember.Evented, {
this._notifyProperties(changedKeys);
},

materializeId: function(id) {
set(this, 'id', id);
},

materializeAttributes: function(attributes) {
Ember.assert("Must pass an object to materializeAttributes", !!attributes);
merge(this._data, attributes);
},

materializeAttribute: function(name, value) {
this._data[name] = value;
},

/**
If the model `isDirty` this function will discard any unsaved
changes. If the model `isNew` it will be removed from the store.
Expand Down

0 comments on commit 5d7c15f

Please sign in to comment.