Commit d38ee78d authored by Jörn Zaefferer's avatar Jörn Zaefferer

reverted my "fixes", seems like they work only with the latest (dev) rhino...

reverted my "fixes", seems like they work only with the latest (dev) rhino version, which isn't that helpful
parent 78fe70f3
...@@ -442,9 +442,6 @@ var window = this; ...@@ -442,9 +442,6 @@ var window = this;
get src() { return this.getAttribute("src") || ""; }, get src() { return this.getAttribute("src") || ""; },
set src(val) { return this.setAttribute("src",val); }, 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") || ""; }, get id() { return this.getAttribute("id") || ""; },
set id(val) { return this.setAttribute("id",val); }, set id(val) { return this.setAttribute("id",val); },
...@@ -571,8 +568,8 @@ var window = this; ...@@ -571,8 +568,8 @@ var window = this;
XMLHttpRequest.prototype = { XMLHttpRequest.prototype = {
open: function(method, url, async, user, password){ open: function(method, url, async, user, password){
this.readyState = 1; this.readyState = 1;
if (async != undefined) if (async)
this.async = async; this.async = true;
this.method = method || "GET"; this.method = method || "GET";
this.url = url; this.url = url;
this.onreadystatechange(); this.onreadystatechange();
...@@ -654,9 +651,9 @@ var window = this; ...@@ -654,9 +651,9 @@ var window = this;
} }
if (this.async) if (this.async)
(new java.lang.Thread({ (new java.lang.Thread(new java.lang.Runnable({
run: makeRequest run: makeRequest
})).start(); }))).start();
else else
makeRequest(); makeRequest();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment