[jboss-cvs] jboss-seam/src/remoting/org/jboss/seam/remoting ...
Shane Bryzak
sbryzak at redhat.com
Thu Aug 23 03:45:22 EDT 2007
User: sbryzak2
Date: 07/08/23 03:45:22
Modified: src/remoting/org/jboss/seam/remoting remote.js
Log:
check whether we're still within the context of the calling page before invoking callback
Revision Changes Path
1.8 +3 -1 jboss-seam/src/remoting/org/jboss/seam/remoting/remote.js
(In the diff below, changes in quantity of whitespace are not shown.)
Index: remote.js
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/remoting/org/jboss/seam/remoting/remote.js,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- remote.js 4 Jul 2007 03:36:48 -0000 1.7
+++ remote.js 23 Aug 2007 07:45:22 -0000 1.8
@@ -617,7 +617,9 @@
else
asyncReq = new ActiveXObject("Microsoft.XMLHTTP");
- asyncReq.onreadystatechange = function() {Seam.Remoting.requestCallback(asyncReq, callback); }
+ asyncReq.onreadystatechange = function() {
+ if (Seam) Seam.Remoting.requestCallback(asyncReq, callback);
+ }
if (Seam.Remoting.encodedSessionId)
{
More information about the jboss-cvs-commits
mailing list