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}; |
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>"); |