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

Commit a74b81f

Browse files
author
Scott J. Miles
committed
add Polymer thunk so we can load polymer via (async) import
1 parent 6969b51 commit a74b81f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/dom.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
return dom;
108108
}
109109

110+
window.Polymer = function(name, dictionary) {
111+
window.addEventListener('WebComponentsReady', function() {
112+
Polymer(name, dictionary);
113+
});
114+
}
110115
// exports
111116

112117
scope.createDOM = createDOM;

0 commit comments

Comments
 (0)