Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #36 from ubald/master
Browse files Browse the repository at this point in the history
System.autoLoader fix
  • Loading branch information
cristo-rabani committed Nov 28, 2015
2 parents f39a339 + f65303f commit c764b3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extensions/autoLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ System.autoLoad = (name, deps, fn) => {
deps = deps || [];
deps = deps.map(n => System.normalizeSync(n, name));
var loadedModules = [];
var mustWait = false;
deps.every(mName => {
var mustWait = deps.some(mName => {
const m = System.get(mName);
if (!m) {
mustWait = true;
return false;
return true;
}
loadedModules.push(m);
});
Expand Down

0 comments on commit c764b3a

Please sign in to comment.