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 [wp7] support set responseType, get response
Date Sat, 22 Mar 2014 03:35:26 GMT
Repository: cordova-wp8
Updated Branches:
  refs/heads/master 6b1004e7d -> 5f92cd4e8


CB-5965 [wp7] 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/5f92cd4e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/5f92cd4e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/5f92cd4e

Branch: refs/heads/master
Commit: 5f92cd4e8458291249a3047458ae62b03838cf2a
Parents: 6b1004e
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Fri Mar 21 20:35:22 2014 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Fri Mar 21 20:35:22 2014 -0700

----------------------------------------------------------------------
 wp7/template/cordovalib/XHRHelper.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/5f92cd4e/wp7/template/cordovalib/XHRHelper.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/XHRHelper.cs b/wp7/template/cordovalib/XHRHelper.cs
index a24733f..0e3a5e9 100644
--- a/wp7/template/cordovalib/XHRHelper.cs
+++ b/wp7/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