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:
commit
3af0252dbc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue