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

Function getInteractiveScript

public/javascripts/require.js:1930–1941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1928 };
1929
1930 function getInteractiveScript() {
1931 if (interactiveScript && interactiveScript.readyState === 'interactive') {
1932 return interactiveScript;
1933 }
1934
1935 eachReverse(scripts(), function (script) {
1936 if (script.readyState === 'interactive') {
1937 return (interactiveScript = script);
1938 }
1939 });
1940 return interactiveScript;
1941 }
1942
1943 //Look for a data-main script attribute, which could also adjust the baseUrl.
1944 if (isBrowser && !cfg.skipDataMain) {

Callers 1

require.jsFile · 0.85

Calls 2

eachReverseFunction · 0.85
scriptsFunction · 0.85

Tested by

no test coverage detected