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

Commit

Permalink
allow polymer to bootstrap sooner.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Dec 12, 2013
1 parent ebe17b9 commit da062c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
}

var polymer = function(name, dictionary) {
window.addEventListener('WebComponentsReady', function() {
document.addEventListener('WebComponentsReady', function() {
// avoid re-entrancy. If polymer is not redefined by this time, do nothing
if (window.Polymer !== polymer) {
Polymer(name, dictionary);
Expand All @@ -128,7 +128,7 @@
'load polymer, <link rel="import" href="' +
'components/polymer/plymer.html">');
}
});
}, true);
}

window.Polymer = polymer
Expand Down

0 comments on commit da062c1

Please sign in to comment.