MCPcopy
hub / github.com/moxiecode/plupload / removeScript

Function removeScript

tests/js/require.js:358–368  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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