From a74b81f36dfc493d59e4451c4fd53a82f0aa8d22 Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Wed, 6 Nov 2013 12:31:47 -0800 Subject: [PATCH] add Polymer thunk so we can load polymer via (async) import --- src/dom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dom.js b/src/dom.js index a1098d7..fcee0e5 100644 --- a/src/dom.js +++ b/src/dom.js @@ -107,6 +107,11 @@ return dom; } + window.Polymer = function(name, dictionary) { + window.addEventListener('WebComponentsReady', function() { + Polymer(name, dictionary); + }); + } // exports scope.createDOM = createDOM;