vazco / universe-modules

Use ES6 / ES2015 modules in Meteor with SystemJS
https://atmospherejs.com/universe/modules
MIT License
52 stars 7 forks source link

System.autoLoader fix #36

Closed ubald closed 8 years ago

ubald commented 8 years ago

Fixes https://github.com/vazco/universe-ecmascript/issues/3

I took the liberty of changing deps.every to deps.some as it makes more sense with the mustWait condition.

The original implementation with deps.every was returning at the first iteration because it was not returning true so the loop was ended prematurely. With deps.some it is not needed because its the truthy value that breaks the loop, not the falsy.