/[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 59 by andrew.betts, Tue Mar 25 00:38:17 2008 UTC revision 60 by andrew.betts, Tue Mar 25 22:34:16 2008 UTC
# Line 85  Meteor = { Line 85  Meteor = {
85                          Meteor.loadFrame("http://"+Meteor.host+((Meteor.port==80)?"":":"+Meteor.port)+"/poll.html");                          Meteor.loadFrame("http://"+Meteor.host+((Meteor.port==80)?"":":"+Meteor.port)+"/poll.html");
86                          Meteor.recvtimes[0] = t;                          Meteor.recvtimes[0] = t;
87                          if (Meteor.updatepollfreqtimer) clearTimeout(Meteor.updatepollfreqtimer);                          if (Meteor.updatepollfreqtimer) clearTimeout(Meteor.updatepollfreqtimer);
88                          if (Meteor.mode=='smartpoll') Meteor.updatepollfreqtimer = setInterval(Meteor.updatepollfreq, 2500);                          if (Meteor.mode=='smartpoll') Meteor.updatepollfreqtimer = setInterval(Meteor.updatepollfreq, 10000);
89                          if (Meteor.mode=='longpoll') Meteor.pollfreq = Meteor.minpollfreq;                          if (Meteor.mode=='longpoll') Meteor.pollfreq = Meteor.minpollfreq;
90                  }                  }
91                  Meteor.lastrequest = t;                  Meteor.lastrequest = t;
# 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);
101                          try {                          if (Meteor.frameref.tagName=='IFRAME') {
102                                    Meteor.frameref.parentNode.removeChild(Meteor.frameref);
103                            } else {
104                                  Meteor.frameref.open();                                  Meteor.frameref.open();
105                                  Meteor.frameref.close();                                  Meteor.frameref.close();
                         } catch (e) {  
                                 Meteor.frameref.parentNode.removeChild(Meteor.frameref);  
106                          }                          }
107                          delete Meteor.frameref;                          delete Meteor.frameref;
108                          Meteor.log("Disconnected");                          Meteor.log("Disconnected");
# Line 172  Meteor = { Line 172  Meteor = {
172    
173          pollmode: function() {          pollmode: function() {
174                  Meteor.log("Ping timeout");                  Meteor.log("Ping timeout");
175                  Meteor.mode="smartpoll";                  if (Meteor.mode != "smartpoll") {
176                  clearTimeout(Meteor.pingtimer);                          Meteor.mode="smartpoll";
177                  Meteor.callbacks["changemode"]("poll");                          Meteor.callbacks["changemode"]("poll");
178                  Meteor.lastpingtime = false;                          clearTimeout(Meteor.pingtimer);
179                            Meteor.lastpingtime = false;
180                    }
181                  Meteor.connect();                  Meteor.connect();
182          },          },
183    

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

  ViewVC Help
Powered by ViewVC 1.1.26