/[meteor]/googlecode.com/svn/trunk/public_html/meteor.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /googlecode.com/svn/trunk/public_html/meteor.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 60 by andrew.betts, Tue Mar 25 22:34:16 2008 UTC revision 61 by andrew.betts, Thu Apr 17 20:03:54 2008 UTC
# Line 47  Meteor = { Line 47  Meteor = {
47                  Meteor.channels[channelname] = {backtrack:backtrack};                  Meteor.channels[channelname] = {backtrack:backtrack};
48                  Meteor.log("Joined channel "+channelname);                  Meteor.log("Joined channel "+channelname);
49                  Meteor.channelcount++;                  Meteor.channelcount++;
50                  if (Meteor.status != 0) Meteor.connect();                  if (Meteor.status != 0 && Meteor.status != 6) Meteor.connect();
51          },          },
52    
53          leaveChannel: function(channelname) {          leaveChannel: function(channelname) {
# Line 55  Meteor = { Line 55  Meteor = {
55                  delete Meteor.channels[channelname];                  delete Meteor.channels[channelname];
56                  Meteor.log("Left channel "+channelname);                  Meteor.log("Left channel "+channelname);
57                  Meteor.channelcount--;                  Meteor.channelcount--;
58                  if (Meteor.channelcount && Meteor.status != 0) Meteor.connect();                  if (Meteor.channelcount && Meteor.status != 0 && Meteor.status != 6) Meteor.connect();
59                  else Meteor.disconnect();                  else Meteor.disconnect();
60          },          },
61    
# Line 98  Meteor = { Line 98  Meteor = {
98                          clearTimeout(Meteor.frameloadtimer);                          clearTimeout(Meteor.frameloadtimer);
99                          if (typeof CollectGarbage == 'function') CollectGarbage();                          if (typeof CollectGarbage == 'function') CollectGarbage();
100                          if (Meteor.status != 6) Meteor.setstatus(0);                          if (Meteor.status != 6) Meteor.setstatus(0);
                         if (Meteor.frameref.tagName=='IFRAME') {  
                                 Meteor.frameref.parentNode.removeChild(Meteor.frameref);  
                         } else {  
                                 Meteor.frameref.open();  
                                 Meteor.frameref.close();  
                         }  
                         delete Meteor.frameref;  
101                          Meteor.log("Disconnected");                          Meteor.log("Disconnected");
102                            try { Meteor.frameref.parentNode.removeChild(Meteor.frameref); delete Meteor.frameref; return true; } catch(e) { }
103                            try { Meteor.frameref.open(); Meteor.frameref.close(); return true; } catch(e) {}                      
104                  }                  }
105          },          },
106                    
# Line 209  Meteor = { Line 204  Meteor = {
204          },          },
205    
206          reset: function() {          reset: function() {
207                  if (Meteor.status != 6) {                  if (Meteor.status != 6 && Meteor.status != 0) {
208                          Meteor.log("Stream reset");                          Meteor.log("Stream reset");
209                          Meteor.ping();                          Meteor.ping();
210                          Meteor.callbacks["reset"]();                          Meteor.callbacks["reset"]();

Legend:
Removed from v.60  
changed lines
  Added in v.61

  ViewVC Help
Powered by ViewVC 1.1.26