--- googlecode.com/svn/trunk/public_html/meteor.js 2006/11/23 16:35:37 8
+++ googlecode.com/svn/trunk/public_html/meteor.js 2007/05/14 15:32:03 22
@@ -16,43 +16,14 @@
f(a);g(args);
}
};
-function addUnLoadEvent(func) {
- var oldonunload = window.onunload;
- if (typeof window.onunload != 'function') {
- window.onunload = func;
- } else {
- window.onunload = function() {
- if (oldonunload) {
- oldonunload();
- }
- func();
- }
- }
-}
-addUnLoadEvent(meteordestroy);
-function meteordestroy() {
- var x = Meteor.instances.length;
- for(var i=0; i 0) {
+ surl += "&restartfrom="+this.channels[c].lastmsgreceived;
+ } else if (this.channels[c].backtrack > 0) {
+ surl += "&backtrack="+this.channels[c].backtrack;
+ } else if (this.channels[c].backtrack < 0 || isNaN(this.channels[c].backtrack)) {
+ surl += "&restartfrom=";
+ }
}
+ this.subsurl = surl;
if (this.mode=="stream") {
if (document.all) {
- this.setstatus(1);
- this.transferDoc = new ActiveXObject("htmlfile");
- this.transferDoc.open();
- this.transferDoc.write("");
- this.transferDoc.write("