Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv27665/chat/lib/index_libs
Modified Files:
connect_state.lib.js
Log Message:
Fixed a bug if the script tries to update the connection status while the user is leaving the chat
Index: connect_state.lib.js
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/connect_state.lib.js,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** connect_state.lib.js 2001/04/27 18:27:22 1.7
--- connect_state.lib.js 2001/04/29 14:27:06 1.8
***************
*** 54,62 ****
function pmcConnecting(numTry)
{
- var exitFrm = window.frames['exit'];
-
if (jsIsConnecting)
clearTimeout(jsIsConnecting);
jsConnect = numTry;
if (numTry == 1 || numTry == 2)
--- 54,64 ----
function pmcConnecting(numTry)
{
if (jsIsConnecting)
clearTimeout(jsIsConnecting);
jsConnect = numTry;
+
+ var exitFrm = window.frames['exit'];
+ if (typeof(exitFrm.document) == 'undefined')
+ return;
if (numTry == 1 || numTry == 2)
|