Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit f64ead4

Browse files
committed
update bindProperties call.
1 parent 9bd0122 commit f64ead4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/tk-app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</polymer-ui-menu-button>
2828
</polymer-ui-toolbar>
2929
</polymer-ui-toolbar>
30-
<div id="main" class="{{banner: !seen_banner}}">
30+
<div id="main" class="{{ {banner: !seen_banner} | tokenList }}">
3131
<tk-designer id="designer" selected="{{selected}}" designElement="{{designElement}}" maximized="{{maximized}}"></tk-designer>
3232
<tk-source id="source" fontSize="{{fontSize}}" sourceElement="{{designElement}}" on-source-changed="{{sourceChanged}}" on-keydown="{{sourceKeydown}}"></tk-source>
3333
<tk-tools id="tools" selected="{{selected}}" sourceElement="{{designElement}}"

lib/tk-property-inspector.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,12 @@
224224
// bind propertyValue to property
225225
var p = this.meta.property;
226226
//Polymer.bindProperties(this, 'propertyValue', p.obj, p.name);
227-
this.bindProperty('propertyValue', p.obj, p.name);
227+
this.bindProperty('propertyValue', new PathObserver(p.obj, p.name));
228228
// bind this.editor.value to propertyValue
229229
// (imperative form of <editor value="{{editorValue}}">)
230230
//Polymer.bindProperties(this.editor, 'value', this, 'propertyValue');
231-
this.editor.bindProperty('value', this, 'propertyValue');
231+
this.editor.bindProperty('value', new PathObserver(this,
232+
'propertyValue'));
232233
// update editor meta from property
233234
this.updateEditorMeta();
234235
},

0 commit comments

Comments
 (0)