--- googlecode.com/svn/trunk/public_html/meteor.js 2007/08/01 17:38:00 27 +++ googlecode.com/svn/trunk/public_html/meteor.js 2007/10/10 22:24:32 30 @@ -90,6 +90,13 @@ this.instances[instid].reset(); } +window.onunload = function() { + for (var i in Meteor.instances) { + if (Meteor.instances[i].transferDoc) delete Meteor.instances[i].transferDoc; + } +} + + Meteor.prototype.joinChannel = function(channelname, backtrack) { if (typeof(this.channels[channelname]) != "undefined") throw "Cannot join channel "+channelname+": already subscribed"; this.channels[channelname] = {backtrack:backtrack, lastmsgreceived:0}; @@ -159,7 +166,6 @@ delete this.transferDoc; if (document.all) try { this.transferDoc = new ActiveXObject("htmlfile") } catch(ex) { this.transferDoc = null } if (document.all && this.transferDoc) { - this.transferDoc = new ActiveXObject("htmlfile"); this.transferDoc.open(); this.transferDoc.write(""); this.transferDoc.write("