MCPcopy Create free account
hub / github.com/BlaNKtext/webosu / removeScript

Function removeScript

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

Source from the content-addressed store, hash-verified

357 }
358
359 function removeScript(name) {
360 if (isBrowser) {
361 each(scripts(), function (scriptNode) {
362 if (scriptNode.getAttribute('data-requiremodule') === name &&
363 scriptNode.getAttribute('data-requirecontext') === context.contextName) {
364 scriptNode.parentNode.removeChild(scriptNode);
365 return true;
366 }
367 });
368 }
369 }
370
371 function hasPathFallback(id) {
372 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