MCPcopy
hub / github.com/nbubna/store / hasPathFallback

Function hasPathFallback

libs/requirejs.js:375–385  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

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

Callers 2

checkLoadedFunction · 0.85
newContextFunction · 0.85

Calls 2

getOwnFunction · 0.85
isArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…