X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/build/debug-min.js diff --git a/build/debug-min.js b/build/debug-min.js deleted file mode 100644 index 31604631..00000000 --- a/build/debug-min.js +++ /dev/null @@ -1 +0,0 @@ -Ext.debug={};(function(){var b;function a(){var e=new Ext.debug.ScriptsPanel();var g=new Ext.debug.LogPanel();var c=new Ext.debug.DomTree();var d=new Ext.TabPanel({activeTab:0,border:false,tabPosition:"bottom",items:[{title:"Debug Console",layout:"border",items:[g,e]},{title:"DOM Inspector",layout:"border",items:[c]}]});b=new Ext.Panel({id:"x-debug-browser",title:"Console",collapsible:true,animCollapse:false,style:"position:absolute;left:0;bottom:0;",height:200,logView:g,layout:"fit",tools:[{id:"close",handler:function(){b.destroy();b=null;Ext.EventManager.removeResizeListener(f)}}],items:d});b.render(document.body);b.resizer=new Ext.Resizable(b.el,{minHeight:50,handles:"n",pinned:true,transparent:true,resizeElement:function(){var h=this.proxy.getBox();this.proxy.hide();b.setHeight(h.height);return h}});function f(){b.setWidth(Ext.getBody().getViewSize().width)}Ext.EventManager.onWindowResize(f);f()}Ext.apply(Ext,{log:function(){if(!b){a()}b.logView.log.apply(b.logView,arguments)},logf:function(f,e,c,d){Ext.log(String.format.apply(String,arguments))},dump:function(f){if(typeof f=="string"||typeof f=="number"||typeof f=="undefined"||Ext.isDate(f)){Ext.log(f)}else{if(!f){Ext.log("null")}else{if(typeof f!="object"){Ext.log("Unknown return type")}else{if(Ext.isArray(f)){Ext.log("["+f.join(",")+"]")}else{var c=["{\n"];for(var d in f){var g=typeof f[d];if(g!="function"&&g!="object"){c.push(String.format(" {0}: {1},\n",d,f[d]))}}var e=c.join("");if(e.length>3){e=e.substr(0,e.length-2)}Ext.log(e+"\n}")}}}}},_timers:{},time:function(c){c=c||"def";Ext._timers[c]=new Date().getTime()},timeEnd:function(d,f){var e=new Date().getTime();d=d||"def";var c=String.format("{0} ms",e-Ext._timers[d]);Ext._timers[d]=new Date().getTime();if(f!==false){Ext.log("Timer "+(d=="def"?c:d+": "+c))}return c}})})();Ext.debug.ScriptsPanel=Ext.extend(Ext.Panel,{id:"x-debug-scripts",region:"east",minWidth:200,split:true,width:350,border:false,layout:"anchor",style:"border-width:0 0 0 1px;",initComponent:function(){this.scriptField=new Ext.form.TextArea({anchor:"100% -26",style:"border-width:0;"});this.trapBox=new Ext.form.Checkbox({id:"console-trap",boxLabel:"Trap Errors",checked:true});this.toolbar=new Ext.Toolbar([{text:"Run",scope:this,handler:this.evalScript},{text:"Clear",scope:this,handler:this.clear},"->",this.trapBox," "," "]);this.items=[this.toolbar,this.scriptField];Ext.debug.ScriptsPanel.superclass.initComponent.call(this)},evalScript:function(){var s=this.scriptField.getValue();if(this.trapBox.getValue()){try{var rt=eval(s);Ext.dump(rt===undefined?"(no return)":rt)}catch(e){Ext.log(e.message||e.descript)}}else{var rt=eval(s);Ext.dump(rt===undefined?"(no return)":rt)}},clear:function(){this.scriptField.setValue("");this.scriptField.focus()}});Ext.debug.LogPanel=Ext.extend(Ext.Panel,{autoScroll:true,region:"center",border:false,style:"border-width:0 1px 0 0",log:function(){var a=['