Browse Source

Trigger style:custom from target update

up-style-manager
Artur Arseniev 5 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 // Triggers only custom event
const trgCustom = debounce(() => this.__trgCustom()); const trgCustom = debounce(() => this.__trgCustom());
model.listenTo(em, evLayerSelect, trgCustom); model.listenTo(em, `${evLayerSelect} ${evTarget}`, trgCustom);
// Other listeners // Other listeners
model.on('change:lastTarget', () => em.trigger(evTarget, this.getSelected())); model.on('change:lastTarget', () => em.trigger(evTarget, this.getSelected()));
@ -166,7 +166,6 @@ export default () => {
__upSel() { __upSel() {
this.select(this.em.getSelectedAll()); this.select(this.em.getSelectedAll());
this.__trgCustom();
}, },
__trgCustom(opts = {}) { __trgCustom(opts = {}) {

Loading…
Cancel
Save