[LON-CAPA-cvs] cvs: rat /client ratcode.js

www lon-capa-cvs@mail.lon-capa.org
Wed, 08 Jun 2005 19:23:38 -0000


www		Wed Jun  8 15:23:38 2005 EDT

  Modified files:              
    /rat/client	ratcode.js 
  Log:
  Can make a zombie now
  
  
Index: rat/client/ratcode.js
diff -u rat/client/ratcode.js:1.1 rat/client/ratcode.js:1.2
--- rat/client/ratcode.js:1.1	Wed Nov 17 13:39:20 2004
+++ rat/client/ratcode.js	Wed Jun  8 15:23:37 2005
@@ -850,7 +850,12 @@
    for (k=0;k<inwithlink.length;k++)  { dellink(inwithlink[k]); }
    for (k=0;k<outwithlink.length;k++) { dellink(outwithlink[k]); }
    delobj(obj1);
-   objcont[obj1]='';
+// turn into a zombie
+   data2=objcont[obj1].split(':');
+   data2[3]='zombie';
+   data2[4]='zombie';
+   objcont[obj1]=data2.join(':');
+// reconnect
    if (recon==1) {
      message("Reconnecting");
       for (k=0;k<inwithlink.length;k++) {