MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / load

Function load

experimental/scripting/deprecated/api.worker.js:21–36  ·  view source on GitHub ↗
(library, onComplete)

Source from the content-addressed store, hash-verified

19};
20
21function load(library, onComplete){
22 var libname = "";
23 switch(library){
24 default:
25 break;
26 };
27 if(libname !== ""){
28 try{
29 require("libraries/" + libname + ".js");
30 }catch(e){
31 trace("Error: Import script failed.");
32 }
33 }
34 if(onComplete)
35 onComplete();
36};
37
38function clone(a){
39 // Shallow copy

Callers

nothing calls this directly

Calls 2

requireFunction · 0.85
traceFunction · 0.70

Tested by

no test coverage detected