projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hs attribute ctx_new_len removed and typo fixed ctx_new_length to ctx_new_len for...
[xynt.git]
/
web
/
xynt
/
xynt-http-streaming.js
diff --git
a/web/xynt/xynt-http-streaming.js
b/web/xynt/xynt-http-streaming.js
index
f6b0a0b
..
f414a56
100644
(file)
--- 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@/,
cmdproc: null,
comm_match: /_*@BEGIN@(.*?)@END@/g,
comm_clean: /_*@BEGIN@(.*?)@END@/,
- ctx_old_len: 0,
+
//
ctx_old_len: 0,
// ctx_new: "",
// ctx_new: "",
- ctx_new_len: 0,
+
//
ctx_new_len: 0,
stream: "",
start: function(page) {
stream: "",
start: function(page) {
@@
-128,13
+128,13
@@
http_streaming.prototype = {
if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined')
break;
if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined')
break;
- ctx_new_len
gth
= this.ifra.contentWindow.ctx_new.length;
- if (ctx_new_len
gth
== this.ctx_old_len) {
+ ctx_new_len = this.ifra.contentWindow.ctx_new.length;
+ if (ctx_new_len == this.ctx_old_len) {
break;
}
break;
}
- this.log("new: "+ ctx_new_len
gth
+ " old: "+this.ctx_old_len);
+ this.log("new: "+ ctx_new_len + " old: "+this.ctx_old_len);
this.keepalive_new++;
this.keepalive_new++;
- for (i = this.ctx_old_len ; i < ctx_new_len
gth
; 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;
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;
}
}
this.ctx_old_len = i;
- if (i == ctx_new_len
gth
) {
+ if (i == ctx_new_len) {
this.log("old_len == i");
break;
}
this.log("old_len == i");
break;
}