roojs-core.js
authorEdward <edward@roojs.com>
Mon, 24 Mar 2014 04:39:04 +0000 (12:39 +0800)
committerEdward <edward@roojs.com>
Mon, 24 Mar 2014 04:39:04 +0000 (12:39 +0800)
roojs-all.js
roojs-debug.js

roojs-all.js
roojs-debug.js

index 5264816..da7b01d 100644 (file)
@@ -4,7 +4,7 @@ Roo.apply(Roo,{isStrict:B,isSecure:L,isReady:false,debug:false,enableGarbageColl
 N[s].on(O[1],o[b]);}}
 N=null;},id:function(el,N){N=N||"roo-gen";el=Roo.getDom(el);var id=N+(++A);return el?(el.id?el.id:(el.id=id)):id;},extend:function(){var io=function(o){for(var m in o){this[m]=o[m];}};return function(sb,sp,N){if(typeof sp=='object'){N=sp;sp=sb;sb=function(){sp.apply(this,arguments);};}var F=function(){},O,P=sp.prototype;F.prototype=P;O=sb.prototype=new F();O.constructor=sb;sb.superclass=P;if(P.constructor==Object.prototype.constructor){P.constructor=sp;}
 sb.override=function(o){Roo.override(sb,o);};O.override=io;Roo.override(sb,N);return sb;};}(),override:function(N,O){if(O){var p=N.prototype;for(var P in O){p[P]=O[P];}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i<a.length;++i){d=a[i].split(".");rt=d[0];eval('if (typeof '+rt+' == "undefined"){'+rt+' = {};} o = '+rt+';');for(j=1;j<d.length;++j){o[d[j]]=o[d[j]]||{};o=o[d[j]];}}},factory:function(c,ns){if(!c.xtype||(!ns&&!c.xns)||(c.xns===false)){return c;}
-ns=c.xns?c.xns:ns;if(c.constructor==ns[c.xtype]){return c;}if(ns[c.xtype]){if(Roo.debug)Roo.log("Roo.Factory("+c.xtype+")");var N=new ns[c.xtype](c);N.xns=false;return N;}
+ns=c.xns?c.xns:ns;Roo.log('ns');Roo.log(ns);if(c.constructor==ns[c.xtype]){return c;}if(ns[c.xtype]){if(Roo.debug)Roo.log("Roo.Factory("+c.xtype+")");var N=new ns[c.xtype](c);N.xns=false;return N;}
 c.xns=false;return c;},log:function(s){if((typeof(console)=='undefined')||(typeof(console.log)=='undefined')){return;}
 console.log(s);},urlEncode:function(o){if(!o){return "";}var N=[];for(var O in o){var ov=o[O],k=Roo.encodeURIComponent(O);var P=typeof ov;if(P=='undefined'){N.push(k,"=&");}else if(P!="function"&&P!="object"){N.push(k,"=",Roo.encodeURIComponent(ov),"&");}else if(ov instanceof Array){if(ov.length){for(var i=0,Q=ov.length;i<Q;i++){N.push(k,"=",Roo.encodeURIComponent(ov[i]===undefined?'':ov[i]),"&");}}else {N.push(k,"=&");}}}
 N.pop();return N.join("");},encodeURIComponent:function(N){try{return encodeURIComponent(N);}catch(e){}if(N==''||N==null){return '';}function nibble_to_hex(Q){var R='0123456789ABCDEF';return R.charAt(Q);}
index 97e0c40..27ecc75 100644 (file)
@@ -299,6 +299,8 @@ Roo.factory(conf, Roo.data);
                 return c;
             }
             ns = c.xns ? c.xns : ns; // if c.xns is set, then use that..
+            Roo.log('ns');
+            Roo.log(ns);
             if (c.constructor == ns[c.xtype]) {// already created...
                 return c;
             }