aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-08-14 16:37:14 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-08-14 16:37:14 +0000
commitd38ee78db9b8a8a89b985928c1d23543cb2ff1cd (patch)
treea4ab10edabf3216572099183d7f918c002d43fb6 /build
parent78fe70f3e6585dd645ac7b0d8dc0ca06fee113e1 (diff)
downloadjquery-d38ee78db9b8a8a89b985928c1d23543cb2ff1cd.tar.gz
jquery-d38ee78db9b8a8a89b985928c1d23543cb2ff1cd.zip
reverted my "fixes", seems like they work only with the latest (dev) rhino version, which isn't that helpful
Diffstat (limited to 'build')
-rw-r--r--build/runtest/env.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/build/runtest/env.js b/build/runtest/env.js
index 42e7b7628..e15a22631 100644
--- a/build/runtest/env.js
+++ b/build/runtest/env.js
@@ -442,9 +442,6 @@ var window = this;
get src() { return this.getAttribute("src") || ""; },
set src(val) { return this.setAttribute("src",val); },
- get href() { return this.getAttribute("href") || ""; },
- set href(val) { return this.setAttribute("href", val); },
-
get id() { return this.getAttribute("id") || ""; },
set id(val) { return this.setAttribute("id",val); },
@@ -571,8 +568,8 @@ var window = this;
XMLHttpRequest.prototype = {
open: function(method, url, async, user, password){
this.readyState = 1;
- if (async != undefined)
- this.async = async;
+ if (async)
+ this.async = true;
this.method = method || "GET";
this.url = url;
this.onreadystatechange();
@@ -654,9 +651,9 @@ var window = this;
}
if (this.async)
- (new java.lang.Thread({
+ (new java.lang.Thread(new java.lang.Runnable({
run: makeRequest
- })).start();
+ }))).start();
else
makeRequest();
},