Adopt latest loader

This commit is contained in:
Alex Dima
2015-12-02 09:45:56 +01:00
parent 65d8505740
commit 41568f6eeb

View File

@@ -1092,7 +1092,9 @@ var AMDLoader;
}
else {
if (this._queuedDefineCalls.length === 0) {
console.warn('No define call received from module ' + id + '. This might be a problem.');
// Loaded a file and it didn't call `define`
this._loadingScriptsCount++;
this._onLoadError(id, new Error('No define call received from module ' + id + '.'));
}
else {
// Consume queue until first anonymous define call