MCPcopy Index your code
hub / github.com/AlloyTeam/AlloyImage / addModule

Function addModule

nsrc/alloyimage.process.js:29–42  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

27
28 var count = -1, _this = this;
29 function addModule(obj){
30 count ++;
31
32 var attr = moduleArr[count];
33
34 //递归出口
35 if(count == moduleArr.length - 1){
36 obj[attr] = func.call(null, _this);
37
38 return;
39 }
40
41 obj[attr] ? addModule(obj[attr]) : addModule(obj[attr] = {});
42 }
43
44 addModule(this.lib);
45

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected