From c2864de3ca0776ab12ff17e06ea0d1406d2822aa Mon Sep 17 00:00:00 2001 From: Steve Hannah Date: Wed, 18 Feb 2015 15:48:03 -0800 Subject: [PATCH] Added responseType and response properties to XMLHTTPRequest. --- .../src/main/java/org/teavm/dom/ajax/XMLHttpRequest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/teavm-dom/src/main/java/org/teavm/dom/ajax/XMLHttpRequest.java b/teavm-dom/src/main/java/org/teavm/dom/ajax/XMLHttpRequest.java index a651390ba..b368f70a8 100644 --- a/teavm-dom/src/main/java/org/teavm/dom/ajax/XMLHttpRequest.java +++ b/teavm-dom/src/main/java/org/teavm/dom/ajax/XMLHttpRequest.java @@ -63,10 +63,19 @@ public interface XMLHttpRequest extends JSObject { @JSProperty Document getResponseXML(); + + @JSProperty + JSObject getResponse(); @JSProperty int getStatus(); @JSProperty String getStatusText(); + + @JSProperty + void setResponseType(String type); + + @JSProperty + String getResponseType(); }