Skip to content

Commit

Permalink
Fix dom-bind. Fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jul 29, 2016
1 parent 7bd73ad commit 7ebd4da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/templatizer/dom-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
*/
render() {
if (!this._children) {
var template = this.querySelector(template);
var template = this.querySelector('template');
data.bindTemplate(this, template);
this.root = data.stamp(this, this);
this.root = data.stamp(this, template);
this._children = [];
for (var n=this.root.firstChild; n; n=n.nextSibling) {
this._children[this._children.length] = n;
Expand Down
3 changes: 1 addition & 2 deletions src/templatizer/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@
if (parentNode) {
var parent = Polymer.dom(parentNode);
if (!this._ctor) {
var template = this.localName == 'template' ?
this : this.querySelector('template');
var template = this.querySelector('template');
var self = this;
this._ctor = templatizer.templatize(template, {
fwdHostPropToInstance: function(prop, value) {
Expand Down

0 comments on commit 7ebd4da

Please sign in to comment.