0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Merge pull request #4281 from novaugust/iss4279

Use DS.Model#eachAttribute in editor-base-controller
This commit is contained in:
Jason Williams 2014-10-14 14:04:14 -05:00
commit 3af0252dbc

View file

@ -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);
});