Ejemplo n.º 1
0
(function(a,j){var g=a.Loader,f=a.Path,b=g.Utils;a.augment(g,g.Target,{__currentModule:null,__startLoadTime:0,__startLoadModuleName:null,add:function(c,d,h){var g=this.runtime,l,n=g.Env.mods;if(a.isPlainObject(c))return g.config({modules:c});if("string"==typeof c)b.registerModule(g,c,d,h),d=n[c],h&&!1===h.attach||(h&&(l=d.getNormalizedRequires()),(!l||b.isAttached(g,l))&&b.attachMod(g,d));else if(a.isFunction(c))if(h=d,d=c,b.IE){l=this.runtime;for(var c=a.Env.host.document.getElementsByTagName("script"),e,
k,n=0;n<c.length;n++)if(k=c[n],"interactive"==k.readyState){e=k;break}if(e){e=b.resolveByPage(e.src);var c=e.toString(),n=l.config("packages"),i,q;k=l.Config;var p,o=-1;for(q in n)l=n[q].getBase(),a.startsWith(c,l)&&l.length>o&&(o=l.length,i=l,p=n[q].getBaseUri());c=i?b.removeExtname(f.relative(p.getPath(),e.getPath())):a.startsWith(c,k.base)?b.removeExtname(f.relative(k.baseUri.getPath(),e.getPath())):j}else c=this.__startLoadModuleName;b.registerModule(g,c,d,h);this.__startLoadModuleName=null;this.__startLoadTime=
0}else this.__currentModule={fn:d,config:h}}})})(KISSY);
Ejemplo n.º 2
0
(function(a,k){var h=a.Loader,e=a.Path,b=h.Utils;a.augment(h,h.Target,{__currentModule:null,__startLoadTime:0,__startLoadModuleName:null,add:function(c,d,g){var h=this.runtime,i,o=h.Env.mods;if(a.isPlainObject(c))return h.config({modules:c});if("string"==typeof c)b.registerModule(h,c,d,g),d=o[c],g&&!1===g.attach||(g&&(i=d.getNormalizedRequires()),(!i||b.isAttached(h,i))&&b.attachMod(h,d));else if(a.isFunction(c))if(g=d,d=c,b.IE){i=this.runtime;for(var c=a.Env.host.document.getElementsByTagName("script"),
f,m,o=0;o<c.length;o++)if(m=c[o],"interactive"==m.readyState){f=m;break}if(f){f=b.resolveByPage(f.src);var c=f.toString(),o=i.config("packages"),j,p;m=i.Config;var q,n=-1;for(p in o)i=o[p].getBase(),a.startsWith(c,i)&&i.length>n&&(n=i.length,j=i,q=o[p].getBaseUri());c=j?b.removeExtname(e.relative(q.getPath(),f.getPath())):a.startsWith(c,m.base)?b.removeExtname(e.relative(m.baseUri.getPath(),f.getPath())):k}else c=this.__startLoadModuleName;b.registerModule(h,c,d,g);this.__startLoadModuleName=null;
this.__startLoadTime=0}else this.__currentModule={fn:d,config:g}}})})(KISSY);
Ejemplo n.º 3
0
(function(a,j){var l=a.Loader,h=a.Path,d=l.Utils;a.augment(l,l.Target,{__currentModule:null,__startLoadTime:0,__startLoadModuleName:null,add:function(c,e,i){var l=this.SS,g,o=l.Env.mods;if(a.isPlainObject(c))return l.config({modules:c});if(a.isString(c))d.registerModule(l,c,e,i),e=o[c],i&&!1===i.attach||(i&&(g=e.getNormalizedRequires()),(!g||d.isAttached(l,g))&&d.attachMod(l,e));else if(a.isFunction(c))if(i=e,e=c,d.IE){g=this.SS;for(var c=a.Env.host.document.getElementsByTagName("script"),p,f,o=0;o<
c.length;o++)if(f=c[o],"interactive"==f.readyState){p=f;break}if(p){p=d.resolveByPage(p.src);var c=p.toString(),o=g.Env.packages,b,u;f=g.Config;var q,k=-1;for(u in o)o.hasOwnProperty(u)&&(g=o[u].getBase(),a.startsWith(c,g)&&g.length>k&&(k=g.length,b=g,q=o[u].getBaseUri()));c=b?d.removeExtname(h.relative(q.getPath(),p.getPath())):a.startsWith(c,f.base)?d.removeExtname(h.relative(f.baseUri.getPath(),p.getPath())):j}else c=this.__startLoadModuleName;d.registerModule(l,c,e,i);this.__startLoadModuleName=
null;this.__startLoadTime=0}else this.__currentModule={fn:e,config:i}}})})(KISSY);