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

Function getScript

docs/search/worker.js:8–15  ·  view source on GitHub ↗
(script, callback)

Source from the content-addressed store, hash-verified

6var data;
7
8function getScript(script, callback) {
9 console.log('Loading script: ' + script);
10 $.getScript(base_path + script).done(function () {
11 callback();
12 }).fail(function (jqxhr, settings, exception) {
13 console.log('Error: ' + exception);
14 });
15}
16
17function getScriptsInOrder(scripts, callback) {
18 if (scripts.length === 0) {

Callers 1

getScriptsInOrderFunction · 0.85

Calls 1

doneMethod · 0.45

Tested by

no test coverage detected