MCPcopy Create free account
hub / github.com/AlloyTeam/AlloyImage / addModule

Function addModule

combined/alloyimage.js:85–98  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

83
84 var count = -1, _this = this;
85 function addModule(obj){
86 count ++;
87
88 var attr = moduleArr[count];
89
90 //递归出口
91 if(count == moduleArr.length - 1){
92 obj[attr] = func.call(null, _this);
93
94 return;
95 }
96
97 obj[attr] ? addModule(obj[attr]) : addModule(obj[attr] = {});
98 }
99
100 addModule(this.lib);
101

Callers 1

alloyimage.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected