roojs-core.js
authorAlan Knowles <alan@roojs.com>
Thu, 27 Nov 2014 10:10:08 +0000 (18:10 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 27 Nov 2014 10:10:08 +0000 (18:10 +0800)
roojs-core-debug.js
roojs-ui.js
roojs-ui-debug.js

roojs-core-debug.js
roojs-core.js

index 66463af..a9bb1a7 100644 (file)
@@ -646,7 +646,10 @@ Roo.factory(conf, Roo.data);
 })();
 
 Roo.namespace("Roo", "Roo.util", "Roo.grid", "Roo.dd", "Roo.tree", "Roo.data",
-                "Roo.form", "Roo.menu", "Roo.state", "Roo.lib", "Roo.layout", "Roo.app", "Roo.ux");
+                "Roo.form", "Roo.menu", "Roo.state", "Roo.lib", "Roo.layout",
+                "Roo.app", "Roo.ux",
+                "Roo.bootstrap",
+                "Roo.boostrap.dash");
 /*
  * Based on:
  * Ext JS Library 1.1.1
index d18b216..366f718 100644 (file)
@@ -8,7 +8,7 @@ ns=c.xns?c.xns:ns;if(c.constructor==ns[c.xtype]){return c;}if(ns[c.xtype]){if(Ro
 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);}
-N=N.toString();var O='';for(var i=0;i<N.length;i++){var c=N.charCodeAt(i);var bs=new Array();if(c>0x10000){bs[0]=0xF0|((c&0x1C0000)>>>18);bs[1]=0x80|((c&0x3F000)>>>12);bs[2]=0x80|((c&0xFC0)>>>6);bs[3]=0x80|(c&0x3F);}else if(c>0x800){bs[0]=0xE0|((c&0xF000)>>>12);bs[1]=0x80|((c&0xFC0)>>>6);bs[2]=0x80|(c&0x3F);}else if(c>0x80){bs[0]=0xC0|((c&0x7C0)>>>6);bs[1]=0x80|(c&0x3F);}else {bs[0]=c;}for(var j=0;j<bs.length;j++){var b=bs[j];var P=nibble_to_hex((b&0xF0)>>>4)+nibble_to_hex(b&0x0F);O+='%'+P;}}return O;},urlDecode:function(N,O){if(!N||!N.length){return {};}var P={};var Q=N.split('&');var R,S,T;for(var i=0,U=Q.length;i<U;i++){R=Q[i].split('=');S=decodeURIComponent(R[0]);T=decodeURIComponent(R[1]);if(O!==true){if(typeof P[S]=="undefined"){P[S]=T;}else if(typeof P[S]=="string"){P[S]=[P[S]];P[S].push(T);}else {P[S].push(T);}}else {P[S]=T;}}return P;},each:function(N,fn,O){if(typeof N.length=="undefined"||typeof N=="string"){N=[N];}for(var i=0,P=N.length;i<P;i++){if(fn.call(O||N[i],N[i],i,N)===false){return i;};}},combine:function(){var as=arguments,l=as.length,r=[];for(var i=0;i<l;i++){var a=as[i];if(a instanceof Array){r=r.concat(a);}else if(a.length!==undefined&&!a.substr){r=r.concat(Array.prototype.slice.call(a,0));}else {r.push(a);}}return r;},escapeRe:function(s){return s.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1");},callback:function(cb,N,O,P){if(typeof cb=="function"){if(P){cb.defer(P,N,O||[]);}else {cb.apply(N,O||[]);}}},getDom:function(el){if(!el){return null;}return el.dom?el.dom:(typeof el=='string'?document.getElementById(el):el);},getCmp:function(id){return Roo.ComponentMgr.get(id);},num:function(v,N){if(typeof v!='number'){return N;}return v;},destroy:function(){for(var i=0,a=arguments,N=a.length;i<N;i++){var as=a[i];if(as){if(as.dom){as.removeAllListeners();as.remove();continue;}if(typeof as.purgeListeners=='function'){as.purgeListeners();}if(typeof as.destroy=='function'){as.destroy();}}}},type:function(o){if(o===undefined||o===null){return false;}if(o.htmlElement){return 'element';}var t=typeof o;if(t=='object'&&o.nodeName){switch(o.nodeType){case 1:return 'element';case 3:return (/\S/).test(o.nodeValue)?'textnode':'whitespace';}}if(t=='object'||t=='function'){switch(o.constructor){case Array:return 'array';case RegExp:return 'regexp';}if(typeof o.length=='number'&&typeof o.item=='function'){return 'nodelist';}}return t;},isEmpty:function(v,N){return v===null||v===undefined||(!N?v==='':false);},isOpera:C,isSafari:D,isIE:E,isIE7:F,isGecko:G,isBorderBox:H,isWindows:I,isLinux:K,isMac:J,isTouch:M,useShims:((E&&!F)||(G&&J)),selectNode:function(N,O){var P=Roo.DomQuery.selectNode(N,O);return P?Roo.get(P):new Roo.Element(false);}});})();Roo.namespace("Roo","Roo.util","Roo.grid","Roo.dd","Roo.tree","Roo.data","Roo.form","Roo.menu","Roo.state","Roo.lib","Roo.layout","Roo.app","Roo.ux");
+N=N.toString();var O='';for(var i=0;i<N.length;i++){var c=N.charCodeAt(i);var bs=new Array();if(c>0x10000){bs[0]=0xF0|((c&0x1C0000)>>>18);bs[1]=0x80|((c&0x3F000)>>>12);bs[2]=0x80|((c&0xFC0)>>>6);bs[3]=0x80|(c&0x3F);}else if(c>0x800){bs[0]=0xE0|((c&0xF000)>>>12);bs[1]=0x80|((c&0xFC0)>>>6);bs[2]=0x80|(c&0x3F);}else if(c>0x80){bs[0]=0xC0|((c&0x7C0)>>>6);bs[1]=0x80|(c&0x3F);}else {bs[0]=c;}for(var j=0;j<bs.length;j++){var b=bs[j];var P=nibble_to_hex((b&0xF0)>>>4)+nibble_to_hex(b&0x0F);O+='%'+P;}}return O;},urlDecode:function(N,O){if(!N||!N.length){return {};}var P={};var Q=N.split('&');var R,S,T;for(var i=0,U=Q.length;i<U;i++){R=Q[i].split('=');S=decodeURIComponent(R[0]);T=decodeURIComponent(R[1]);if(O!==true){if(typeof P[S]=="undefined"){P[S]=T;}else if(typeof P[S]=="string"){P[S]=[P[S]];P[S].push(T);}else {P[S].push(T);}}else {P[S]=T;}}return P;},each:function(N,fn,O){if(typeof N.length=="undefined"||typeof N=="string"){N=[N];}for(var i=0,P=N.length;i<P;i++){if(fn.call(O||N[i],N[i],i,N)===false){return i;};}},combine:function(){var as=arguments,l=as.length,r=[];for(var i=0;i<l;i++){var a=as[i];if(a instanceof Array){r=r.concat(a);}else if(a.length!==undefined&&!a.substr){r=r.concat(Array.prototype.slice.call(a,0));}else {r.push(a);}}return r;},escapeRe:function(s){return s.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1");},callback:function(cb,N,O,P){if(typeof cb=="function"){if(P){cb.defer(P,N,O||[]);}else {cb.apply(N,O||[]);}}},getDom:function(el){if(!el){return null;}return el.dom?el.dom:(typeof el=='string'?document.getElementById(el):el);},getCmp:function(id){return Roo.ComponentMgr.get(id);},num:function(v,N){if(typeof v!='number'){return N;}return v;},destroy:function(){for(var i=0,a=arguments,N=a.length;i<N;i++){var as=a[i];if(as){if(as.dom){as.removeAllListeners();as.remove();continue;}if(typeof as.purgeListeners=='function'){as.purgeListeners();}if(typeof as.destroy=='function'){as.destroy();}}}},type:function(o){if(o===undefined||o===null){return false;}if(o.htmlElement){return 'element';}var t=typeof o;if(t=='object'&&o.nodeName){switch(o.nodeType){case 1:return 'element';case 3:return (/\S/).test(o.nodeValue)?'textnode':'whitespace';}}if(t=='object'||t=='function'){switch(o.constructor){case Array:return 'array';case RegExp:return 'regexp';}if(typeof o.length=='number'&&typeof o.item=='function'){return 'nodelist';}}return t;},isEmpty:function(v,N){return v===null||v===undefined||(!N?v==='':false);},isOpera:C,isSafari:D,isIE:E,isIE7:F,isGecko:G,isBorderBox:H,isWindows:I,isLinux:K,isMac:J,isTouch:M,useShims:((E&&!F)||(G&&J)),selectNode:function(N,O){var P=Roo.DomQuery.selectNode(N,O);return P?Roo.get(P):new Roo.Element(false);}});})();Roo.namespace("Roo","Roo.util","Roo.grid","Roo.dd","Roo.tree","Roo.data","Roo.form","Roo.menu","Roo.state","Roo.lib","Roo.layout","Roo.app","Roo.ux","Roo.bootstrap","Roo.boostrap.dash");
 //Function.js
 (function(){if(Roo.isIE){function fnCleanUp(){var p=Function.prototype;delete p.createSequence;delete p.defer;delete p.createDelegate;delete p.createCallback;delete p.createInterceptor;window.detachEvent("onunload",fnCleanUp);}
 window.attachEvent("onunload",fnCleanUp);}})();Roo.apply(Function.prototype,{createCallback:function(){var A=arguments;var B=this;return function(){return B.apply(window,A);};},createDelegate:function(A,B,C){var D=this;return function(){var E=B||arguments;if(C===true){E=Array.prototype.slice.call(arguments,0);E=E.concat(B);}else if(typeof C=="number"){E=Array.prototype.slice.call(arguments,0);var F=[C,0].concat(B);Array.prototype.splice.apply(E,F);}return D.apply(A||window,E);};},defer:function(A,B,C,D){var fn=this.createDelegate(B,C,D);if(A){return setTimeout(fn,A);}