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 <[email protected]> Authored: Thu Dec 4 16:38:04 2014 -0800 Committer: Jesse MacFadyen <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
