Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6763

Simultaneous local XHRs on WP8 returns incorrect result

    XMLWordPrintableJSON

    Details

      Description

      When try to get content of multiple local files via XHR, all requests return responses with same content. E.g. following code (using jQuery)

      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"]);
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                purplecabbage Jesse MacFadyen
                Reporter:
                vladimir.kotikov Vladimir Kotikov
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: