MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / getScriptsInOrder

Function getScriptsInOrder

docs/search/worker.js:17–25  ·  view source on GitHub ↗
(scripts, callback)

Source from the content-addressed store, hash-verified

15}
16
17function getScriptsInOrder(scripts, callback) {
18 if (scripts.length === 0) {
19 callback();
20 return;
21 }
22 getScript(scripts[0], function() {
23 getScriptsInOrder(scripts.slice(1), callback);
24 });
25}
26
27function loadScripts(urls, callback) {
28 if( 'function' === typeof importScripts ) {

Callers 1

loadScriptsFunction · 0.85

Calls 1

getScriptFunction · 0.85

Tested by

no test coverage detected