From da062c1549b78d227677290d44c23857fdd84740 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Thu, 12 Dec 2013 09:51:28 -0800 Subject: [PATCH] allow polymer to bootstrap sooner. --- src/dom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dom.js b/src/dom.js index a2b60a9..47c95d9 100644 --- a/src/dom.js +++ b/src/dom.js @@ -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); @@ -128,7 +128,7 @@ 'load polymer, '); } - }); + }, true); } window.Polymer = polymer