summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-09-12 09:50:22 +0000
committerThomas BrĂ¼derli2007-09-12 09:50:22 +0000
commitd0f0a83110b1272dcfeaf0c77222da07acd0d540 (patch)
treea5f686c7f6ea9eb08b4642d2e971cd2596812ca8
parentd0b77364f69784ca75085710d6f019007ca1b992 (diff)
downloaditools-d0f0a83110b1272dcfeaf0c77222da07acd0d540.tar.gz
itools-d0f0a83110b1272dcfeaf0c77222da07acd0d540.tar.bz2
itools-d0f0a83110b1272dcfeaf0c77222da07acd0d540.zip
Variables have been set in the wrong context
-rw-r--r--itjs/loader.js7
1 files changed, 4 insertions, 3 deletions
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;