You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2012/10/03 19:42:07 UTC
[jira] [Commented] (CB-1576) XHR_OPTIONAL_PAYLOAD is causes
messages to be dispatched multiple times
[ https://issues.apache.org/jira/browse/CB-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468696#comment-13468696 ]
Andrew Grieve commented on CB-1576:
-----------------------------------
Fixed in commit: https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=a07ed8dad7360b3f995a376f36710ca9396a057f
The main way I've fixed this is changing the default mode to XHR_NO_PAYLOAD, and made XHR_OPTIONAL_PAYLOAD go back to using failing XHRs.
> XHR_OPTIONAL_PAYLOAD is causes messages to be dispatched multiple times
> -----------------------------------------------------------------------
>
> Key: CB-1576
> URL: https://issues.apache.org/jira/browse/CB-1576
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
>
> It looks like my recent change to return YES in canInitWithRequest: cause it to be called multiple times.
> I think the best fix would be to uses a queue to store the messages instead of bundling them within performSelectorOnMainThread.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira