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

Commit

Permalink
when HTMLImports is available, make use of its import parsing hook to…
Browse files Browse the repository at this point in the history
… upgrade import documents.
  • Loading branch information
sorvell committed Feb 4, 2014
1 parent 0939165 commit e28ecfa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ function bootstrap() {
document.dispatchEvent(
new CustomEvent('WebComponentsReady', {bubbles: true})
);

// install upgrade hook if HTMLImports are available
if (window.HTMLImports) {
HTMLImports.__importsParsingHook = function(elt) {
CustomElements.parser.parse(elt.import);
}
}
});
}

Expand Down

0 comments on commit e28ecfa

Please sign in to comment.