diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-07-17 07:54:14 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-07-17 07:54:14 +0000 |
commit | eb5529eac0f73c273ecd6ab1968b30b00c48d903 (patch) | |
tree | d21fca6655315e90941680043bed31e431bc26ca /build | |
parent | 4577cd4b16b633a7015d02ff229898b58831dd18 (diff) | |
download | jquery-eb5529eac0f73c273ecd6ab1968b30b00c48d903.tar.gz jquery-eb5529eac0f73c273ecd6ab1968b30b00c48d903.zip |
Added runtest ant task (doesn't display results yet);
added href-attribute to DOMElement, fixed XMLHttpRequest to actually allow sync requests, fixed new Thread(new Runnable({run...})) to use new Thread({run:...})
Diffstat (limited to 'build')
-rw-r--r-- | build/runtest/env.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build/runtest/env.js b/build/runtest/env.js index e15a22631..42e7b7628 100644 --- a/build/runtest/env.js +++ b/build/runtest/env.js @@ -442,6 +442,9 @@ 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); }, @@ -568,8 +571,8 @@ var window = this; XMLHttpRequest.prototype = { open: function(method, url, async, user, password){ this.readyState = 1; - if (async) - this.async = true; + if (async != undefined) + this.async = async; this.method = method || "GET"; this.url = url; this.onreadystatechange(); @@ -651,9 +654,9 @@ var window = this; } if (this.async) - (new java.lang.Thread(new java.lang.Runnable({ + (new java.lang.Thread({ run: makeRequest - }))).start(); + })).start(); else makeRequest(); }, |