Skip to content

Commit

Permalink
Use DS.Model#eachAttribute in editor-base-controller
Browse files Browse the repository at this point in the history
Closes #4279
  • Loading branch information
novaugust committed Oct 14, 2014
1 parent d36c6fb commit 4354458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/mixins/editor-base-controller.js
Expand Up @@ -7,7 +7,7 @@ import boundOneWay from 'ghost/utils/bound-one-way';
// to know if the model has been changed (`controller.isDirty`)
var watchedProps = ['scratch', 'titleScratch', 'model.isDirty'];

Ember.get(PostModel, 'attributes').forEach(function (name) {
PostModel.eachAttribute(function (name) {
watchedProps.push('model.' + name);
});

Expand Down

0 comments on commit 4354458

Please sign in to comment.