Update system-amd-production.js

additional fix on System.import
This commit is contained in:
Simon Yu 2014-02-19 18:11:18 +00:00
parent c1849b63ad
commit f27f3efe53

View File

@ -257,7 +257,7 @@ global.upgradeSystemLoader = function() {
// amd require
if (names instanceof Array)
Promise.all(names.map(function(name) {
return System.import(name, referer);
return System['import'](name, referer);
})).then(callback, errback);
// commonjs require
@ -297,7 +297,7 @@ global.upgradeSystemLoader = function() {
System.bundles[normalized] = System.bundles[normalized] || System.bundles[b];
return System.load(normalized);
});
return System.import(b).then(function() { return ''; });
return System['import'](b).then(function() { return ''; });
}
return systemFetch.apply(this, arguments);
}