kopia lustrzana https://github.com/c9/core
fix loading non amd scripts via require
rodzic
06efdc5cf0
commit
6e33ccb304
|
@ -91,12 +91,16 @@ var processLoadQueue = function(err, id) {
|
|||
if (r.errback) r.errback(err);
|
||||
}
|
||||
});
|
||||
if (define.lastModule = err.id)
|
||||
if (define.lastModule == err.id)
|
||||
define.lastModule = null;
|
||||
define.pending = define.pending.filter(function(p) {
|
||||
return p != err.id;
|
||||
});
|
||||
changed = true;
|
||||
} else if (id && !defQueue.length && !define.loaded[id]) {
|
||||
// the script didn't call define
|
||||
defQueue = [config.shim && config.shim[id] || [[], null]];
|
||||
console.error("require shims not supported");
|
||||
}
|
||||
|
||||
if (defQueue.length) {
|
||||
|
|
Ładowanie…
Reference in New Issue