You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/12/05 02:01:05 UTC

cordova-wp8 git commit: CB-7892 XHR to local files poly should only load/run once

Repository: cordova-wp8
Updated Branches:
  refs/heads/master 36282cdb1 -> 6bb3fc38a


CB-7892 XHR to local files poly should only load/run once


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/6bb3fc38
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/6bb3fc38
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/6bb3fc38

Branch: refs/heads/master
Commit: 6bb3fc38a4d67cf378e1b11839c4af327ebfccd5
Parents: 36282cd
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Dec 4 16:38:04 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Dec 4 16:38:04 2014 -0800

----------------------------------------------------------------------
 template/cordovalib/XHRHelper.cs | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/6bb3fc38/template/cordovalib/XHRHelper.cs
----------------------------------------------------------------------
diff --git a/template/cordovalib/XHRHelper.cs b/template/cordovalib/XHRHelper.cs
index 62f49ea..35913eb 100644
--- a/template/cordovalib/XHRHelper.cs
+++ b/template/cordovalib/XHRHelper.cs
@@ -37,6 +37,9 @@ namespace WPCordovaClassLib.CordovaLib
     if (!win.__XHRShimAliases) {
         win.__XHRShimAliases = {};
     }
+    else {
+        return; // already initialized, this happens when navigating to #
+    }
 
     win.__onXHRLocalCallback = function (responseCode, responseText, reqId) {
         if (win.__XHRShimAliases[reqId]){


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org