From 994e2090062ec69ef5fb827bf666b4774324f6d4 Mon Sep 17 00:00:00 2001 From: artraxus Date: Wed, 16 Oct 2013 11:08:52 +0200 Subject: [PATCH] fixing an issue with ie10 IE10 problem -> Sometime the callback from jquery (location onhashchange is not called). https://github.com/quirkey/sammy/issues/193 --- lib/sammy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sammy.js b/lib/sammy.js index b59cad28..963f8fbd 100644 --- a/lib/sammy.js +++ b/lib/sammy.js @@ -344,6 +344,7 @@ $.extend(Sammy.DefaultLocationProxy.prototype , { } if (new_location != this.getLocation()) { // HTML5 History exists and new_location is a full path + window.location.hash = new_location; //https://github.com/quirkey/sammy/issues/193 if (_has_history && !this.app.disable_push_state && /^\//.test(new_location)) { history.pushState({ path: new_location }, window.title, new_location); this.app.trigger('location-changed');