Browse Source

Fix undefined style variable

pull/312/head
Artur Arseniev 9 years ago
parent
commit
c4120bd595
  1. 2
      index.html
  2. 3
      src/style_manager/view/PropertyView.js

2
index.html

@ -25,7 +25,7 @@
</nav>
<div class="clearfix"></div>
<div class="lead-title">Build your templates without coding</div>
<div class="sub-lead-titleTEST">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</div>
<div class="sub-lead-title">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</div>
<div class="lead-btn">Hover me</div>
</div>
</header>

3
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);
},
/**

Loading…
Cancel
Save