[
https://issues.apache.org/jira/browse/CB-6763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009653#comment-14009653
]
ASF GitHub Bot commented on CB-6763:
------------------------------------
GitHub user vladimir-kotikov opened a pull request:
https://github.com/apache/cordova-wp8/pull/37
Fixes issue when multiple simultaneous requests are sent.
Fix for [CB-6763](https://issues.apache.org/jira/browse/CB-6763)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MSOpenTech/cordova-wp8 CB-6763
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-wp8/pull/37.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #37
----
commit 1a79cd472a925f75e999f99650f6b6f927b25a6b
Author: Vladimir Kotikov <[email protected]>
Date: 2014-05-27T11:45:43Z
Fixes issue when multiple simultaneous requests are sent.
----
> Simultaneous local XHRs on WP8 returns the same result
> ------------------------------------------------------
>
> Key: CB-6763
> URL: https://issues.apache.org/jira/browse/CB-6763
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP8
> Affects Versions: 3.4.0
> Reporter: Vladimir Kotikov
> Assignee: Jesse MacFadyen
> Labels: wp8, xhr, xhrhelper
>
> When try to get content of multiple local files via XHR, all requests return
> responses with same content. E.g. following code (using jQuery)
> {noformat}
> function loadTemplates (views) {
> var deferreds = [];
> $.each(views, function (index, view) {
> var vURL = 'tpl/' + view + '.html';
> deferreds.push($.get(vURL, function (data) {
> console.log(data)
> }, 'html'));
> })
> }
> loadTemplates(["HomeView", "ContactView", "ShellView", "EmployeeView",
> "EmployeeSummaryView", "EmployeeListItemView"]);
> {noformat}
> will print contents of {{tpl/EmployeeListItemView.html}} 6 times.
> The problem is when new local XHR is sent, it overrides
> {{__onXHRLocalCallback}} callback, already created by previous request.
--
This message was sent by Atlassian JIRA
(v6.2#6252)