Author: shane.bryzak(a)jboss.com
Date: 2009-09-29 19:19:52 -0400 (Tue, 29 Sep 2009)
New Revision: 11525
Modified:
branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/remote.js
Log:
JBSEAM-3721
Modified: branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/remote.js
===================================================================
--- branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/remote.js 2009-09-29
22:12:14 UTC (rev 11524)
+++ branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting/remote.js 2009-09-29
23:19:52 UTC (rev 11525)
@@ -654,13 +654,14 @@
var inScope = typeof(Seam) == "undefined" ? false : true;
if (inScope) Seam.Remoting.hideLoadingMessage();
-
- window.setTimeout(function() {
- asyncReq.onreadystatechange = function() {};
- }, 0);
-
+
if (asyncReq.status == 200)
{
+ // We do this to avoid a memory leak
+ window.setTimeout(function() {
+ asyncReq.onreadystatechange = function() {};
+ }, 0);
+
if (inScope) Seam.Remoting.log("Response packet:\n" +
asyncReq.responseText);
if (callback)
Show replies by thread