From bb93765dbb37456ab713a5b3864123b595b4773f Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Fri, 16 May 2014 11:06:40 +0200 Subject: [PATCH] Fix IE9 history navigation Change-Id: I83469fdaa069e80dc17c0c0c307bff7e9b25e468 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/617 --- resources/mmv/mmv.bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/mmv/mmv.bootstrap.js b/resources/mmv/mmv.bootstrap.js index 8ace3d817..3016da5a4 100755 --- a/resources/mmv/mmv.bootstrap.js +++ b/resources/mmv/mmv.bootstrap.js @@ -355,7 +355,7 @@ MMVB.setupEventHandlers = function () { var self = this; - $( window ).on( this.browserHistory ? 'popstate.mmvb' : 'hashchange', function () { + $( window ).on( this.browserHistory && this.browserHistory.pushState ? 'popstate.mmvb' : 'hashchange', function () { self.hash(); } );