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

Function removeScript

lib/require.js:357–367  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

355 }
356
357 function removeScript(name) {
358 if (isBrowser) {
359 each(scripts(), function (scriptNode) {
360 if (scriptNode.getAttribute('data-requiremodule') === name &&
361 scriptNode.getAttribute('data-requirecontext') === context.contextName) {
362 scriptNode.parentNode.removeChild(scriptNode);
363 return true;
364 }
365 });
366 }
367 }
368
369 function hasPathFallback(id) {
370 var pathConfig = getOwn(config.paths, id);

Callers 2

hasPathFallbackFunction · 0.85
checkLoadedFunction · 0.85

Calls 2

eachFunction · 0.85
scriptsFunction · 0.85

Tested by

no test coverage detected