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

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

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/2a404053
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/2a404053
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/2a404053

Branch: refs/heads/3.7.x
Commit: 2a404053b73cfc1804a8760c1f46304e4edc84f9
Parents: 333200a
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Dec 4 16:38:04 2014 -0800
Committer: sgrebnov <v-...@microsoft.com>
Committed: Thu Dec 18 10:58:26 2014 +0300

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


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/2a404053/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