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

Function removeScript

libs/requirejs.js:363–373  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

361 }
362
363 function removeScript(name) {
364 if (isBrowser) {
365 each(scripts(), function (scriptNode) {
366 if (scriptNode.getAttribute('data-requiremodule') === name &&
367 scriptNode.getAttribute('data-requirecontext') === context.contextName) {
368 scriptNode.parentNode.removeChild(scriptNode);
369 return true;
370 }
371 });
372 }
373 }
374
375 function hasPathFallback(id) {
376 var pathConfig = getOwn(config.paths, id);

Callers 2

checkLoadedFunction · 0.85
newContextFunction · 0.85

Calls 2

scriptsFunction · 0.85
eachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…