(id)
| 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 |
no test coverage detected