|
|
@ -66,6 +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); |
|
|
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); |
|
|
@ -111,10 +112,10 @@ module.exports = Backbone.View.extend({ |
|
|
/** |
|
|
/** |
|
|
* Clear the property from the target |
|
|
* Clear the property from the target |
|
|
*/ |
|
|
*/ |
|
|
clear() { |
|
|
clear(e) { |
|
|
|
|
|
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(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|