[seam-commits] Seam SVN: r9167 - trunk/src/remoting/org/jboss/seam/remoting.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Oct 1 23:44:15 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-10-01 23:44:15 -0400 (Wed, 01 Oct 2008)
New Revision: 9167

Modified:
   trunk/src/remoting/org/jboss/seam/remoting/remote.js
Log:
JBSEAM-3459

Modified: trunk/src/remoting/org/jboss/seam/remoting/remote.js
===================================================================
--- trunk/src/remoting/org/jboss/seam/remoting/remote.js	2008-10-01 21:43:10 UTC (rev 9166)
+++ trunk/src/remoting/org/jboss/seam/remoting/remote.js	2008-10-02 03:44:15 UTC (rev 9167)
@@ -590,7 +590,9 @@
   {
     if (Seam.Remoting.pendingCalls.isEmpty())
       Seam.Remoting.hideLoadingMessage();
-    call.asyncReq.onreadystatechange = function() {};
+    window.setTimeout(function() {
+      call.asyncReq.onreadystatechange = function() {};
+    }, 0);
     call.asyncReq.abort();
   }
 }
@@ -634,9 +636,11 @@
 
   var rcb = Seam.Remoting.requestCallback;
   
-  asyncReq.onreadystatechange = function() {
+  window.setTimeout(function() {
+    asyncReq.onreadystatechange = function() {
     if (rcb) rcb(asyncReq, callback);     
-  }
+    }
+  }, 0);
 
   if (Seam.Remoting.encodedSessionId)
   {
@@ -660,7 +664,10 @@
     var inScope = typeof(Seam) == "undefined" ? false : true;
     
     if (inScope) Seam.Remoting.hideLoadingMessage();
-    req.onreadystatechange = function() {};
+    
+    window.setTimeout(function() {
+      req.onreadystatechange = function() {};
+    }, 0);
 
     if (req.status == 200)
     {




More information about the seam-commits mailing list