cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject git commit: CB-5965 support set responseType, get response
Date Sat, 22 Mar 2014 03:31:07 GMT
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 <purplecabbage@gmail.com>
Authored: Fri Mar 21 20:30:47 2014 -0700
Committer: Jesse MacFadyen <purplecabbage@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);
                         };


Mime
View raw message