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

Commit

Permalink
avoid use of template.createInstance as this is provided by TemplateB…
Browse files Browse the repository at this point in the history
…inding.
  • Loading branch information
sorvell committed Aug 4, 2014
1 parent db8c71c commit dfe2159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/html/styling/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
n = names[i];
var template = templateForName(n);
if (template) {
this.createShadowRoot().appendChild(template.createInstance());
this.createShadowRoot().appendChild(template.content.cloneNode(true));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/html/styling/style-import-shim.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

var XProto = Object.create(HTMLButtonElement.prototype);
XProto.createdCallback = function() {
this.appendChild(t.createInstance({}));
this.appendChild(t.content.cloneNode(true));
};

document.registerElement('x-div', {
Expand Down

0 comments on commit dfe2159

Please sign in to comment.