Skip to content

Commit

Permalink
Merge pull request #4432 from Polymer/2.0-binding-api
Browse files Browse the repository at this point in the history
Separate binding-specific code from template stamp. Expose override points
  • Loading branch information
Steve Orvell authored Apr 4, 2017
2 parents 7106177 + f87790d commit 6ca0927
Show file tree
Hide file tree
Showing 4 changed files with 566 additions and 531 deletions.
3 changes: 2 additions & 1 deletion lib/legacy/legacy-element-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,9 @@
* template content.
*/
instanceTemplate(template) {
let content = this.constructor._contentForTemplate(template);
let dom = /** @type {DocumentFragment} */
(document.importNode(template._content || template.content, true));
(document.importNode(content, true));
return dom;
}

Expand Down
Loading

0 comments on commit 6ca0927

Please sign in to comment.