mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
fix init function (#237)
This commit is contained in:
parent
45c13842cf
commit
6dc1a6097a
@ -65,12 +65,8 @@ function global(loader) {
|
||||
var exports = {};
|
||||
|
||||
// run init
|
||||
if (init) {
|
||||
var depModules = [];
|
||||
for (var i = 0; i < deps.length; i++)
|
||||
depModules.push(require(deps[i]));
|
||||
singleGlobal = init.apply(loader.global, depModules);
|
||||
}
|
||||
if (init)
|
||||
singleGlobal = init.call(loader.global);
|
||||
|
||||
// check for global changes, creating the globalObject for the module
|
||||
// if many globals, then a module object for those is created
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user