From c5065b5269f3110366b2099c633c3f2ccc2928da Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 25 Apr 2012 17:19:54 +0200 Subject: [PATCH] hs attribute ctx_new_len removed and typo fixed ctx_new_length to ctx_new_len for watchdog local var --- web/xynt/xynt-http-streaming.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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; } -- 2.17.1