Browse Source

Trigger style:custom from target update

up-style-manager
Artur Arseniev 4 years ago
parent
commit
4645d5c200
  1. 3
      src/style_manager/index.js

3
src/style_manager/index.js

@ -156,7 +156,7 @@ export default () => {
// Triggers only custom event
const trgCustom = debounce(() => this.__trgCustom());
model.listenTo(em, evLayerSelect, trgCustom);
model.listenTo(em, `${evLayerSelect} ${evTarget}`, trgCustom);
// Other listeners
model.on('change:lastTarget', () => em.trigger(evTarget, this.getSelected()));
@ -166,7 +166,6 @@ export default () => {
__upSel() {
this.select(this.em.getSelectedAll());
this.__trgCustom();
},
__trgCustom(opts = {}) {

Loading…
Cancel
Save