Patches hasFireBug function after concatenation
authorIván Perdomo <ivan.perdomo@openbravo.com>
Fri, 21 Jan 2011 09:01:12 +0100
changeset 3 65480dd46397
parent 2 bd631cd1ac9b
child 4 80276e337e13
Patches hasFireBug function after concatenation
ISC_Combined.js.patch
build.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ISC_Combined.js.patch	Fri Jan 21 09:01:12 2011 +0100
@@ -0,0 +1,11 @@
+--- ISC_Combined.js	2011-01-21 08:52:16.000000000 +0100
++++ ISC_Combined2.js	2011-01-21 08:54:27.000000000 +0100
+@@ -811,7 +811,7 @@
+ _8.add(_7)}
+ _4.add("    "+this.getCallTrace(_1,null,(_9||_1.callee.caller==null)));if(_10==0){var _11=this.$e7(_1.$e8);if(_11)_4.add(_11)}
+ _7=_1.callee;if(!_5){_7=_7.caller;if(_7)_1=_7.arguments}else _1=_1.caller;_9=false;_10++}
+-if(_4.length==0)return"";return"\r\n"+_4.join("\r")+"\r"},hasFireBug:function(){return isc.Browser.isMoz&&window.console!=null&&window.console.trace!=null},fireBugVersion:function(){return this.hasFireBug()?window.console.firebug:null},fireBugTrace:function(_1){window.console.trace(_1);return" [Complete stack trace logged via Firebug: "+_1+"]"},$e7:function(_1){var _2=isc.SB.create();for(var _3 in _1){var _4=_1[_3],_5;if(_4===_5)continue;if(isc.startsWith(_3,isc.$ag))continue;_2.append("\n        "+_3+" = "+this.echoLeaf(_4))}
++if(_4.length==0)return"";return"\r\n"+_4.join("\r")+"\r"},hasFireBug:function(){return false;},fireBugVersion:function(){return this.hasFireBug()?window.console.firebug:null},fireBugTrace:function(_1){window.console.trace(_1);return" [Complete stack trace logged via Firebug: "+_1+"]"},$e7:function(_1){var _2=isc.SB.create();for(var _3 in _1){var _4=_1[_3],_5;if(_4===_5)continue;if(isc.startsWith(_3,isc.$ag))continue;_2.append("\n        "+_3+" = "+this.echoLeaf(_4))}
+ return _2.toString()},$am:function(_1,_2,_3,_4){if(_1.$fa)return;_1.$fa=true;var _5=_1.toString();if(isc.Browser.isMoz){if(_1.stack){var _6;try{_6=this.transformMozStackTrace(_1.stack)}catch(e){_6=_1.stack}
+ _5+="\n"+_6}else{_5+="  [No error.stack available]"}}
+ this.logWarn(_5)},transformMozStackTrace:function(_1){var _2=_1.split("\n"),_3=isc.StringBuffer.create(),_4=isc.Page.getAppDir(),_5=window.location.protocol+"//"+window.location.host;for(var i=0;i<_2.length;i++){var _7=_2[i],_8=_7.indexOf("("),_9=_7.lastIndexOf("@"),_10=null,_11=null,_12=null;var _13=_7.substring(0,_8);if(_13==""){_13="unnamed"}else if(_13.startsWith("isc_")){var _14;if(_13.startsWith("isc_c_")){_13=_13.substring(6);_14=true}else{_13=_13.substring(4)}
--- a/build.xml	Tue Jan 11 19:39:35 2011 +0100
+++ b/build.xml	Fri Jan 21 09:01:12 2011 +0100
@@ -34,5 +34,7 @@
       <fileset file="${isc}/system/modules/ISC_DataBinding.js" />
       <fileset file="${isc}/system/modules/ISC_RichTextEditor.js" />
     </concat>
+    <!-- Patching hasFireBug function to always return false. Prevents annoying trace calls in some SmartClient code -->
+    <patch patchfile="ISC_Combined.js.patch" originalfile="ISC_Combined.js" />		
   </target>
 </project>