From c4120bd595c11db90c23ad7500ed63d4b61dd123 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 13 Sep 2017 22:52:56 +0200 Subject: [PATCH] Fix undefined style variable --- index.html | 2 +- src/style_manager/view/PropertyView.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 4c188e1a3..d3640fea4 100755 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@
Build your templates without coding
-
All text blocks could be edited easily with double clicking on it. You can create new text blocks with the command from the left panel
+
All text blocks could be edited easily with double clicking on it. You can create new text blocks with the command from the left panel
Hover me
diff --git a/src/style_manager/view/PropertyView.js b/src/style_manager/view/PropertyView.js index 974076664..778b93f0b 100644 --- a/src/style_manager/view/PropertyView.js +++ b/src/style_manager/view/PropertyView.js @@ -411,10 +411,9 @@ module.exports = Backbone.View.extend({ } target.setStyle(style, opts); - console.log('update target with ',style, opts, target.getStyle(), target.cid, target.attributes); // Helper is used by `states` like ':hover' to show its preview const helper = this.getHelperModel(); - helper && helper.setStyle(targetStyle, opts); + helper && helper.setStyle(style, opts); }, /**