From 0d050f9631d411cd4bdec0a26a9d005349464395 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Mon, 10 Sep 2007 10:01:58 +0000 Subject: Flags to locate script errors --- itjs/loader.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'itjs/loader.js') diff --git a/itjs/loader.js b/itjs/loader.js index 6efdbee..3735bca 100644 --- a/itjs/loader.js +++ b/itjs/loader.js @@ -165,6 +165,7 @@ post: function(baseurl, data) readyStateChanged: function() { var loader = this.loader; // Avoid race conditions + it_loader.sequence += "r"; if (loader && (loader.readyState == 4)) { @@ -199,6 +200,7 @@ dataReady: function(data, callid) { var fixkonqueror33gcbug = this.loader; var loadtime = new Date().getTime() - this.starttime; + it_loader.sequence += "e"; this.loader = null; @@ -228,6 +230,8 @@ dataReady: function(data, callid) if (!this.attr.eof && (this.end < this.pos + this.num)) this.load(this.baseurl, this.end, this.pos + this.num - this.end); + + it_loader.sequence += "h"; } this.unlink(); @@ -257,10 +261,12 @@ unlink: function() document.body.removeChild(this.scrpt); this.scrpt = null; } + + it_loader.sequence = ""; }/* NO COMMA */ } // static properties it_loader.instances = 0; - +it_loader.sequence = ""; -- cgit v1.2.3