Update of /cvsroot/magicajax/magicajax/Core/script
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10910/Core/script
Modified Files:
AjaxCallObject.js
Log Message:
Fixed a tracing bug. When an exception is thrown by server, AjaxCallObject.js tries to write to the trace window even if tracing is not enabled.
Index: AjaxCallObject.js
===================================================================
RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** AjaxCallObject.js 26 Nov 2005 12:14:41 -0000 1.26
--- AjaxCallObject.js 29 Nov 2005 01:08:36 -0000 1.27
***************
*** 393,398 ****
AjaxCallObject.prototype.OnAbort = function()
{
! this.WriteTrace("<b>!!! AjaxCall was aborted !!!</b>");
! this.CloseTrace();
if (waitElement)
--- 393,401 ----
AjaxCallObject.prototype.OnAbort = function()
{
! if (__bTracing)
! {
! this.WriteTrace("<b>!!! AjaxCall was aborted !!!</b>");
! this.CloseTrace();
! }
if (waitElement)
***************
*** 402,407 ****
AjaxCallObject.prototype.OnError = function(status, statusText, responseText)
{
! this.WriteTrace("<b>!!! Server reported an Error !!!</b>");
! this.CloseTrace();
if (waitElement)
--- 405,413 ----
AjaxCallObject.prototype.OnError = function(status, statusText, responseText)
{
! if (__bTracing)
! {
! this.WriteTrace("<b>!!! Server reported an Error !!!</b>");
! this.CloseTrace();
! }
if (waitElement)
|