[seam-commits] Seam SVN: r11525 - branches/community/Seam_2_2/src/remoting/org/jboss/seam/remoting.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Sep 29 19:19:52 EDT 2009


Author: shane.bryzak at 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)



More information about the seam-commits mailing list