From 4354458b11c8699ae2e82727d4e147919b7ced5a Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Tue, 14 Oct 2014 11:29:54 -0600 Subject: [PATCH] Use DS.Model#eachAttribute in editor-base-controller Closes #4279 --- core/client/mixins/editor-base-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/mixins/editor-base-controller.js b/core/client/mixins/editor-base-controller.js index 11ae6049f9..4776f4b20c 100644 --- a/core/client/mixins/editor-base-controller.js +++ b/core/client/mixins/editor-base-controller.js @@ -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); });