X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=xynt.git;a=blobdiff_plain;f=web%2Fxynt%2Fxynt-http-streaming.js;h=f414a56dedea079d1271dae858175744168533ca;hp=f6b0a0bd46ee1c9247ea4d406e440b9d24f77049;hb=c5065b5269f3110366b2099c633c3f2ccc2928da;hpb=e34d9bc4d332a1421383cc4614b5e461ef207dfa diff --git a/web/xynt/xynt-http-streaming.js b/web/xynt/xynt-http-streaming.js index f6b0a0b..f414a56 100644 --- a/web/xynt/xynt-http-streaming.js +++ b/web/xynt/xynt-http-streaming.js @@ -60,9 +60,9 @@ http_streaming.prototype = { cmdproc: null, comm_match: /_*@BEGIN@(.*?)@END@/g, comm_clean: /_*@BEGIN@(.*?)@END@/, - ctx_old_len: 0, + // ctx_old_len: 0, // ctx_new: "", - ctx_new_len: 0, + // ctx_new_len: 0, stream: "", start: function(page) { @@ -128,13 +128,13 @@ http_streaming.prototype = { if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined') break; - ctx_new_length = this.ifra.contentWindow.ctx_new.length; - if (ctx_new_length == this.ctx_old_len) { + ctx_new_len = this.ifra.contentWindow.ctx_new.length; + if (ctx_new_len == this.ctx_old_len) { break; } - this.log("new: "+ ctx_new_length + " old: "+this.ctx_old_len); + this.log("new: "+ ctx_new_len + " old: "+this.ctx_old_len); this.keepalive_new++; - for (i = this.ctx_old_len ; i < ctx_new_length ; i++) { + for (i = this.ctx_old_len ; i < ctx_new_len ; i++) { if (this.ifra.contentWindow.ctx_new.charAt(i) != '_') { this.log("ctx_new.char(i) != '_' ["+this.ifra.contentWindow.ctx_new.charAt(i)+"]"); break; @@ -144,7 +144,7 @@ http_streaming.prototype = { } } this.ctx_old_len = i; - if (i == ctx_new_length) { + if (i == ctx_new_len) { this.log("old_len == i"); break; }