Skip to content

Commit

Permalink
allow MDV to bootstrap templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Mar 26, 2013
1 parent 297ab6f commit 72c66c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if (!window.WrapperElement) {
return inElement.webkitCreateShadowRoot();
};
window.templateContent = function(inTemplate) {
// allow MDV to bootstrap templates if it's around
if (window.HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
HTMLTemplateElement.bootstrap(inTemplate);
}
if (!inTemplate.content && !inTemplate._content) {
var frag = document.createDocumentFragment();
while (inTemplate.firstChild) {
Expand Down

0 comments on commit 72c66c7

Please sign in to comment.