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

Commit

Permalink
add Polymer thunk so we can load polymer via (async) import
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Nov 6, 2013
1 parent 6969b51 commit a74b81f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
return dom;
}

window.Polymer = function(name, dictionary) {
window.addEventListener('WebComponentsReady', function() {
Polymer(name, dictionary);
});
}
// exports

scope.createDOM = createDOM;
Expand Down

0 comments on commit a74b81f

Please sign in to comment.