[
https://issues.apache.org/jira/browse/CB-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943880#comment-13943880
]
ASF subversion and git services commented on CB-5965:
-----------------------------------------------------
Commit 5f92cd4e8458291249a3047458ae62b03838cf2a in cordova-wp8's branch
refs/heads/master from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;h=5f92cd4 ]
CB-5965 [wp7] support set responseType, get response
> XHR with responseType other than 'text' calls fail on WP8
> ---------------------------------------------------------
>
> Key: CB-5965
> URL: https://issues.apache.org/jira/browse/CB-5965
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP7, WP8
> Affects Versions: 3.3.0
> Environment: Windows Phone 8
> Reporter: Piotr Plewa
> Assignee: Jesse MacFadyen
>
> responseType in XHR calls is ignored,
> for example setting it to 'arraybuffer' or 'blob' fails on Windows Phone 8
> because the value is not being propagated into "wrappedXHR" as well as there
> is no 'response' property in the wrappedXHR Object.
> The workaround is to use xhr.wrappedXHR.response instead or add into
> XHRHelper.cs:
> {code:javascript}
> Object.defineProperty(this, 'responseType', {
> set: function(val) {
> this.wrappedXHR.responseType = val;
> }
> });
> Object.defineProperty(this, 'response', {
> get: function() {
> return this.wrappedXHR.response;
> }
> });
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)