Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CABED10251 for ; Tue, 27 May 2014 13:24:01 +0000 (UTC) Received: (qmail 17597 invoked by uid 500); 27 May 2014 13:24:01 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 17573 invoked by uid 500); 27 May 2014 13:24:01 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 17564 invoked by uid 99); 27 May 2014 13:24:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 13:24:01 +0000 Date: Tue, 27 May 2014 13:24:01 +0000 (UTC) From: "Vladimir Kotikov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-6763) Simultaneous local XHRs on WP8 returns the same result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vladimir Kotikov created CB-6763: ------------------------------------ Summary: 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 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)