hasFireBug function overriden in runtime 3.0RC4 3.0RC5 3.0RC6
authorIván Perdomo <ivan.perdomo@openbravo.com>
Fri, 21 Jan 2011 09:38:51 +0100
changeset 4 80276e337e13
parent 3 65480dd46397
child 5 30d46dc6bd1c
hasFireBug function overriden in runtime
ISC_Combined.js.patch
build.xml
--- a/ISC_Combined.js.patch	Fri Jan 21 09:01:12 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
---- 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	Fri Jan 21 09:01:12 2011 +0100
+++ b/build.xml	Fri Jan 21 09:38:51 2011 +0100
@@ -34,7 +34,5 @@
       <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>