Repository: cordova-wp8 Updated Branches: refs/heads/master b2b1e6185 -> e693d147b
CB-7843 Fixes angular routing on WP8 Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/e693d147 Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/e693d147 Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/e693d147 Branch: refs/heads/master Commit: e693d147b87641fcc2f341dbea7bc7c73d14f9e1 Parents: b2b1e61 Author: Vladimir Kotikov <v-vlk...@microsoft.com> Authored: Wed Oct 22 12:22:52 2014 +0400 Committer: Vladimir Kotikov <v-vlk...@microsoft.com> Committed: Wed Oct 22 12:22:52 2014 +0400 ---------------------------------------------------------------------- template/cordovalib/XHRHelper.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/e693d147/template/cordovalib/XHRHelper.cs ---------------------------------------------------------------------- diff --git a/template/cordovalib/XHRHelper.cs b/template/cordovalib/XHRHelper.cs index 81256fe..62f49ea 100644 --- a/template/cordovalib/XHRHelper.cs +++ b/template/cordovalib/XHRHelper.cs @@ -34,13 +34,15 @@ namespace WPCordovaClassLib.CordovaLib { string script = @"(function(win, doc) { - var __XHRShimAliases = {}; + if (!win.__XHRShimAliases) { + win.__XHRShimAliases = {}; + } - window.__onXHRLocalCallback = function (responseCode, responseText, reqId) { - if (__XHRShimAliases[reqId]){ - var alias = __XHRShimAliases[reqId]; + win.__onXHRLocalCallback = function (responseCode, responseText, reqId) { + if (win.__XHRShimAliases[reqId]){ + var alias = win.__XHRShimAliases[reqId]; if (alias){ - delete __XHRShimAliases[reqId]; + delete win.__XHRShimAliases[reqId]; if (responseCode == '200'){ alias.onResult && alias.onResult(responseText); Object.defineProperty(alias, 'responseXML', { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org