--- 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: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};