Browse Source

Update clear in style manager

pull/856/head
Artur Arseniev 9 years ago
parent
commit
a13396397b
  1. 3
      src/style_manager/view/PropertyView.js

3
src/style_manager/view/PropertyView.js

@ -66,7 +66,7 @@ module.exports = Backbone.View.extend({
} }
em && em.on(`update:component:style:${this.property}`, this.targetUpdated); em && em.on(`update:component:style:${this.property}`, this.targetUpdated);
em && em.on(`styleable:change:${this.property}`, this.targetUpdated); //em && em.on(`styleable:change:${this.property}`, this.targetUpdated);
this.listenTo(this.propTarget, 'update', this.targetUpdated); this.listenTo(this.propTarget, 'update', this.targetUpdated);
this.listenTo(model, 'destroy remove', this.remove); this.listenTo(model, 'destroy remove', this.remove);
this.listenTo(model, 'change:value', this.modelValueChanged); this.listenTo(model, 'change:value', this.modelValueChanged);
@ -116,6 +116,7 @@ module.exports = Backbone.View.extend({
e && e.stopPropagation(); e && e.stopPropagation();
const target = this.getTargetModel(); const target = this.getTargetModel();
target.removeStyle(this.model.get('property')); target.removeStyle(this.model.get('property'));
this.targetUpdated();
}, },
/** /**

Loading…
Cancel
Save