hs attribute ctx_new_len removed and typo fixed ctx_new_length to ctx_new_len for...
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Wed, 25 Apr 2012 15:19:54 +0000 (17:19 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Wed, 25 Apr 2012 15:19:54 +0000 (17:19 +0200)
web/xynt/xynt-http-streaming.js

index f6b0a0b..f414a56 100644 (file)
@@ -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_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;
             }
                 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++;            
             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;
                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_length) {
+           if (i == ctx_new_len) {
                 this.log("old_len == i");
                break;
            }
                 this.log("old_len == i");
                break;
            }