MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / removeScript

Function removeScript

public/javascripts/require.js:356–366  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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

Callers 2

checkLoadedFunction · 0.85
newContextFunction · 0.85

Calls 2

eachFunction · 0.85
scriptsFunction · 0.85

Tested by

no test coverage detected