From d0f0a83110b1272dcfeaf0c77222da07acd0d540 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Wed, 12 Sep 2007 09:50:22 +0000 Subject: Variables have been set in the wrong context --- itjs/loader.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'itjs/loader.js') diff --git a/itjs/loader.js b/itjs/loader.js index 2089679..f51680f 100644 --- a/itjs/loader.js +++ b/itjs/loader.js @@ -106,13 +106,14 @@ load: function(baseurl, pos, num, query_volatile, retry) catch (e) { } } + this.starttime = new Date().getTime(); + this.retry = retry; + if (this.loader) { if (this.method == "POST") this.loader.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - this.starttime = new Date().getTime(); - this.retry = retry; this.loader.send(this.post_data); } else @@ -129,7 +130,7 @@ load: function(baseurl, pos, num, query_volatile, retry) this.scrpt = document.createElement("script"); it_loader['__inst'+this.instance] = this; - this.loader = { starttime: new Date().getTime(), retry: retry }; + this.loader = { starttime: this.starttime, retry: retry }; try { this.scrpt.src = req_url; -- cgit v1.2.3