--- googlecode.com/svn/trunk/public_html/meteor.js 2007/08/02 09:29:07 28 +++ googlecode.com/svn/trunk/public_html/meteor.js 2007/10/10 22:18:30 29 @@ -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,6 +166,7 @@ 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("