Skip to content
Permalink
Browse files

module: no longer rely on `HTMLImports.whenImportsReady`; this means …

…`using` is 'sync' and cannot be used in the main document when the HTMLImports polyfill is in play.
  • Loading branch information
sorvell committed Dec 12, 2014
1 parent 39ab504 commit fcd555db9860305b792c5ccbcfb82d408779b688
Showing with 3 additions and 11 deletions.
  1. +3 −11 src/module.html
@@ -41,17 +41,9 @@

var modules = {};

if (window.HTMLImports) {
var using = function(depends, task) {
HTMLImports.whenImportsReady(function() {
withDependencies(task, depends);
});
};
} else {
var using = function(depends, task) {
withDependencies(task, depends);
};
}
var using = function(depends, task) {
withDependencies(task, depends);
};

// exports

0 comments on commit fcd555d

Please sign in to comment.
You can’t perform that action at this time.