Skip to content

Commit

Permalink
Call decorate instead of bootstrap for template prepping
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Nov 16, 2015
1 parent 1c67a5e commit e2a2cfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/Polymer/polymer.git"
},
"dependencies": {
"webcomponentsjs": "^0.7.2"
"webcomponentsjs": "^0.7.18"
},
"devDependencies": {
"web-component-tester": "*"
Expand Down
7 changes: 3 additions & 4 deletions src/mini/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
_prepTemplate: function() {
// locate template using dom-module
if (this._template === undefined) {
this._template = Polymer.DomModule.import(this.is, 'template');
this._template = Polymer.DomModule.import(this.is, 'template');
}
// stick finger in footgun
if (this._template && this._template.hasAttribute('is')) {
Expand All @@ -35,10 +35,9 @@
'Move inside simple <template>.'));
}
// bootstrap the template if it has not already been
if (this._template && !this._template.content && HTMLTemplateElement.bootstrap) {
if (this._template && !this._template.content &&
window.HTMLTemplateElement && HTMLTemplateElement.decorate) {
HTMLTemplateElement.decorate(this._template);
// recurse if necessary
HTMLTemplateElement.bootstrap(this._template.content);
}
},

Expand Down

0 comments on commit e2a2cfd

Please sign in to comment.