From: Argiris K. <be...@us...> - 2005-11-25 12:29:25
|
Update of /cvsroot/magicajax/magicajax/Core/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28780/Core/script Modified Files: AjaxCallObject.js Log Message: A minor correction and some fixes for tracing. Index: AjaxCallObject.js =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/script/AjaxCallObject.js,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** AjaxCallObject.js 24 Nov 2005 20:14:05 -0000 1.23 --- AjaxCallObject.js 25 Nov 2005 12:29:15 -0000 1.24 *************** *** 394,398 **** { this.WriteTrace("<b>!!! AjaxCall was aborted !!!</b>"); ! this.TraceWindow.document.close(); if (waitElement) --- 394,398 ---- { this.WriteTrace("<b>!!! AjaxCall was aborted !!!</b>"); ! this.CloseTrace(); if (waitElement) *************** *** 403,407 **** { this.WriteTrace("<b>!!! Server reported an Error !!!</b>"); ! this.TraceWindow.document.close(); if (waitElement) --- 403,407 ---- { this.WriteTrace("<b>!!! Server reported an Error !!!</b>"); ! this.CloseTrace(); if (waitElement) *************** *** 463,466 **** --- 463,475 ---- AjaxCallObject.prototype.CreateTracingWindow = function() { + for (var i=0; i < __TraceWindows.length; i++) + { + if (__TraceWindows[i].closed) + { + __TraceWindows.splice(i, 1); + i--; + } + } + this.TraceWindow = null; for (var i=0; i < __TraceWindows.length; i++) *************** *** 514,519 **** this.WriteTrace(data.split("<").join("<").split("\r\n").join("<br>")); this.WriteTrace("<b>------------------------------</b><br>"); ! this.TraceWindow.document.close(); ! this.TraceWindow.TraceFinished = true; } --- 523,527 ---- this.WriteTrace(data.split("<").join("<").split("\r\n").join("<br>")); this.WriteTrace("<b>------------------------------</b><br>"); ! this.CloseTrace(); } *************** *** 523,526 **** --- 531,540 ---- } + AjaxCallObject.prototype.CloseTrace = function() + { + this.TraceWindow.document.close(); + this.TraceWindow.TraceFinished = true; + } + AjaxCallObject.prototype.SetAttributesOfControl = function(clientID, attributes) { |