You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/03/22 04:31:07 UTC
git commit: CB-5965 support set responseType, get response
Repository: cordova-wp8
Updated Branches:
refs/heads/master ca8efaf15 -> 6b1004e7d
CB-5965 support set responseType, get response
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/6b1004e7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/6b1004e7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/6b1004e7
Branch: refs/heads/master
Commit: 6b1004e7df2c28766bd3de2338667bd1157ca096
Parents: ca8efaf
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Mar 21 20:30:47 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Mar 21 20:30:47 2014 -0700
----------------------------------------------------------------------
wp8/template/cordovalib/XHRHelper.cs | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/6b1004e7/wp8/template/cordovalib/XHRHelper.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/XHRHelper.cs b/wp8/template/cordovalib/XHRHelper.cs
index a24733f..0e3a5e9 100644
--- a/wp8/template/cordovalib/XHRHelper.cs
+++ b/wp8/template/cordovalib/XHRHelper.cs
@@ -95,6 +95,16 @@ namespace WPCordovaClassLib.CordovaLib
return this.wrappedXHR.responseXML;
}
});
+ Object.defineProperty(this, 'response', {
+ get: function() {
+ return this.wrappedXHR.response;
+ }
+ });
+ Object.defineProperty(this, 'responseType', {
+ set: function(val) {
+ return this.wrappedXHR.responseType = val;
+ }
+ });
this.getResponseHeader = function(header) {
return this.wrappedXHR.getResponseHeader(header);
};