From f65303fc19af5d2d97b6714471639b39e073eeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franc=CC=A7ois=20Ubald=20Brien?= Date: Sat, 28 Nov 2015 04:14:55 -0500 Subject: [PATCH] System.autoLoader fix --- extensions/autoLoader.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/autoLoader.js b/extensions/autoLoader.js index e0ee902..9203c1d 100644 --- a/extensions/autoLoader.js +++ b/extensions/autoLoader.js @@ -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); });