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

Commit

Permalink
update bindProperties call.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Dec 17, 2013
1 parent 9bd0122 commit f64ead4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tk-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</polymer-ui-menu-button>
</polymer-ui-toolbar>
</polymer-ui-toolbar>
<div id="main" class="{{banner: !seen_banner}}">
<div id="main" class="{{ {banner: !seen_banner} | tokenList }}">
<tk-designer id="designer" selected="{{selected}}" designElement="{{designElement}}" maximized="{{maximized}}"></tk-designer>
<tk-source id="source" fontSize="{{fontSize}}" sourceElement="{{designElement}}" on-source-changed="{{sourceChanged}}" on-keydown="{{sourceKeydown}}"></tk-source>
<tk-tools id="tools" selected="{{selected}}" sourceElement="{{designElement}}"
Expand Down
5 changes: 3 additions & 2 deletions lib/tk-property-inspector.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@
// bind propertyValue to property
var p = this.meta.property;
//Polymer.bindProperties(this, 'propertyValue', p.obj, p.name);
this.bindProperty('propertyValue', p.obj, p.name);
this.bindProperty('propertyValue', new PathObserver(p.obj, p.name));
// bind this.editor.value to propertyValue
// (imperative form of <editor value="{{editorValue}}">)
//Polymer.bindProperties(this.editor, 'value', this, 'propertyValue');
this.editor.bindProperty('value', this, 'propertyValue');
this.editor.bindProperty('value', new PathObserver(this,
'propertyValue'));
// update editor meta from property
this.updateEditorMeta();
},
Expand Down

0 comments on commit f64ead4

Please sign in to comment.