Browse Source

Use forceChange option in `em.addSelected`

pull/1287/head
Artur Arseniev 8 years ago
parent
commit
82deb573fa
  1. 4
      src/editor/model/Editor.js

4
src/editor/model/Editor.js

@ -282,7 +282,9 @@ module.exports = Backbone.Model.extend({
models.forEach(model => {
if (model && !model.get('selectable')) return;
this.get('selected').push(model, opts);
const selected = this.get('selected');
opts.forceChange && selected.remove(model, opts);
selected.push(model, opts);
});
},

Loading…
Cancel
Save