MCPcopy
hub / github.com/brianchirls/Seriously.js / hasPathFallback

Function hasPathFallback

lib/require.js:369–380  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

367 }
368
369 function hasPathFallback(id) {
370 var pathConfig = getOwn(config.paths, id);
371 if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
372 removeScript(id);
373 //Pop off the first array value, since it failed, and
374 //retry
375 pathConfig.shift();
376 context.require.undef(id);
377 context.require([id]);
378 return true;
379 }
380 }
381
382 //Turns a plugin!resource to [plugin, resource]
383 //with the plugin being undefined if the name

Callers 2

checkLoadedFunction · 0.85
newContextFunction · 0.85

Calls 3

getOwnFunction · 0.85
isArrayFunction · 0.85
removeScriptFunction · 0.85

Tested by

no test coverage detected