/[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 28 by andrew.betts, Thu Aug 2 09:29:07 2007 UTC revision 29 by andrew.betts, Wed Oct 10 22:18:30 2007 UTC
# Line 90  Meteor.reset = function(ifr) { Line 90  Meteor.reset = function(ifr) {
90          this.instances[instid].reset();          this.instances[instid].reset();
91  }  }
92    
93    window.onunload = function() {
94            for (var i in Meteor.instances) {
95                    if (Meteor.instances[i].transferDoc) delete Meteor.instances[i].transferDoc;
96            }
97    }
98    
99    
100  Meteor.prototype.joinChannel = function(channelname, backtrack) {  Meteor.prototype.joinChannel = function(channelname, backtrack) {
101          if (typeof(this.channels[channelname]) != "undefined") throw "Cannot join channel "+channelname+": already subscribed";          if (typeof(this.channels[channelname]) != "undefined") throw "Cannot join channel "+channelname+": already subscribed";
102          this.channels[channelname] = {backtrack:backtrack, lastmsgreceived:0};          this.channels[channelname] = {backtrack:backtrack, lastmsgreceived:0};
# Line 159  Meteor.prototype.createIframe = function Line 166  Meteor.prototype.createIframe = function
166          delete this.transferDoc;          delete this.transferDoc;
167          if (document.all) try { this.transferDoc = new ActiveXObject("htmlfile") } catch(ex) { this.transferDoc = null }          if (document.all) try { this.transferDoc = new ActiveXObject("htmlfile") } catch(ex) { this.transferDoc = null }
168          if (document.all && this.transferDoc) {          if (document.all && this.transferDoc) {
169                    this.transferDoc = new ActiveXObject("htmlfile");
170                  this.transferDoc.open();                  this.transferDoc.open();
171                  this.transferDoc.write("<html>");                  this.transferDoc.write("<html>");
172                  this.transferDoc.write("<script>document.domain=\""+(document.domain)+"\";</"+"script>");                  this.transferDoc.write("<script>document.domain=\""+(document.domain)+"\";</"+"script>");

Legend:
Removed from v.28  
changed lines
  Added in v.29

  ViewVC Help
Powered by ViewVC 1.1.26