diff --git a/src/style_manager/view/PropertyCompositeView.js b/src/style_manager/view/PropertyCompositeView.js index 9960be0af..7262f85af 100644 --- a/src/style_manager/view/PropertyCompositeView.js +++ b/src/style_manager/view/PropertyCompositeView.js @@ -118,10 +118,6 @@ module.exports = PropertyView.extend({ view && view.getTargetValue({ ignoreCustomValue: 1, ignoreDefault: 1 }); } - if (view) { - value = view.model.parseValue(value).value; - } - return value; }, diff --git a/src/style_manager/view/PropertyView.js b/src/style_manager/view/PropertyView.js index 68037c87e..f146cf049 100644 --- a/src/style_manager/view/PropertyView.js +++ b/src/style_manager/view/PropertyView.js @@ -215,7 +215,8 @@ module.exports = Backbone.View.extend({ const config = this.config; const em = config.em; - const model = this.model; + const { model } = this; + const property = model.get('property'); let value = ''; let status = ''; let targetValue = this.getTargetValue({ ignoreDefault: 1 }); @@ -247,8 +248,8 @@ module.exports = Backbone.View.extend({ this.setStatus(status); if (em) { - em.trigger('styleManager:change', this); - em.trigger(`styleManager:change:${model.get('property')}`, this); + em.trigger('styleManager:change', this, property, value); + em.trigger(`styleManager:change:${property}`, this, value); } },