1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| define([a,b,c,d,e,f,g,h],function(a,b,c,d,e,f,g,h){ var module={ a,b,c,d,e,f,g,h } return module })
define([],function(a,b,c,d){ function SubModule(){ this.a=new a() this.b=new b() this.c=new c() this.d=new d() } subModule.prototype.getA=function(){return this.a} subModule.prototype.getB=function(){return this.b} subModule.prototype.getC=function(){return this.c} subModule.prototype.getD=function(){return this.d} return subModule }) define([subModule,e,f,g,h],function(subModule,e,f,g,h){ var module={ a:subModule.getA(), b:subModule.getB(), c:subModule.getC(), d:subModule.getD(), e,f,g,h } return module })
|