0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Merge pull request #5689 from kevinansfield/fix-property-val-of-undefined

Fix occasional `Cannot read property 'val' of undefined` errors in console
This commit is contained in:
Sebastian Gierlinger 2015-08-20 16:53:47 +02:00
commit f1a602e3f9

View file

@ -248,6 +248,13 @@ export default Ember.Mixin.create({
options = options || {};
// when navigating quickly between pages autoSave will occasionally
// try to run after the editor has been torn down so bail out here
// before we throw errors
if (!this.get('editor').$()) {
return 0;
}
this.toggleProperty('submitting');
if (options.backgroundSave) {