X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=build%2Fruntest%2Fenv.js;h=42e7b76280de69ac12eed72f818c30a028eed6c3;hb=660490e6f487332aaf10c19fd9bbb325bc9946af;hp=e15a2263184475b42f0f6d3b3d4ee23807a6d938;hpb=7c85d973bfa8f716e9331423c74d35489236bb4e;p=jquery.git diff --git a/build/runtest/env.js b/build/runtest/env.js index e15a226..42e7b76 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(); },