diff options
author | Thomas BrĂ¼derli | 2007-09-12 09:50:22 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-09-12 09:50:22 +0000 |
commit | d0f0a83110b1272dcfeaf0c77222da07acd0d540 (patch) | |
tree | a5f686c7f6ea9eb08b4642d2e971cd2596812ca8 /itjs/loader.js | |
parent | d0b77364f69784ca75085710d6f019007ca1b992 (diff) | |
download | itools-d0f0a83110b1272dcfeaf0c77222da07acd0d540.tar.gz itools-d0f0a83110b1272dcfeaf0c77222da07acd0d540.tar.bz2 itools-d0f0a83110b1272dcfeaf0c77222da07acd0d540.zip |
Variables have been set in the wrong context
Diffstat (limited to 'itjs/loader.js')
-rw-r--r-- | itjs/loader.js | 7 |
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; |