Skip to content

Commit

Permalink
Merge pull request #3065 from mateuspv/master
Browse files Browse the repository at this point in the history
[DOC] update typo on #changedAttributes
  • Loading branch information
bmac committed May 12, 2015
2 parents eaf9aa8 + d09419b commit eddb66a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/ember-data/lib/system/model/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,14 +871,15 @@ var Model = Ember.Object.extend(Ember.Evented, {
Example
```javascript
var attr = DS.attr;
App.Mascot = DS.Model.extend({
name: attr('string')
});
var person = store.createRecord('person');
person.changedAttributes(); // {}
person.set('name', 'Tomster');
person.changedAttributes(); // {name: [undefined, 'Tomster']}
var mascot = store.createRecord('mascot');
mascot.changedAttributes(); // {}
mascot.set('name', 'Tomster');
mascot.changedAttributes(); // {name: [undefined, 'Tomster']}
```
@method changedAttributes
Expand Down

0 comments on commit eddb66a

Please sign in to comment.