Browse Source

Prevent breaking the changes counter. Fixes #3412

pull/3426/head
Artur Arseniev 5 years ago
parent
commit
1a20f40c54
  1. 4
      src/editor/model/Editor.js

4
src/editor/model/Editor.js

@ -267,7 +267,9 @@ export default Backbone.Model.extend({
timedInterval && clearTimeout(timedInterval);
timedInterval = setTimeout(() => {
this.set('changesCount', this.get('changesCount') + 1, opt);
const curr = this.get('changesCount') || 0;
const { unset, ...opts } = opt;
this.set('changesCount', curr + 1, opts);
}, 0);
},

Loading…
Cancel
Save