From 66f9506481fa896324e8f46f5a6802bbb90dff0e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 7 Aug 2013 16:20:22 -0400 Subject: [PATCH] FIX: IE9 regression --- .../javascripts/discourse/routes/discourse_location.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/routes/discourse_location.js b/app/assets/javascripts/discourse/routes/discourse_location.js index c23d19130..b567bbec2 100644 --- a/app/assets/javascripts/discourse/routes/discourse_location.js +++ b/app/assets/javascripts/discourse/routes/discourse_location.js @@ -152,11 +152,11 @@ Ember.DiscourseLocation = Ember.Object.extend({ pushState: function(path) { var state = { path: path }; - get(this, 'history').pushState(state, null, path); - // store state if browser doesn't support `history.state` if (!supportsHistoryState) { this._historyState = state; + } else { + get(this, 'history').pushState(state, null, path); } // used for webkit workaround @@ -174,11 +174,11 @@ Ember.DiscourseLocation = Ember.Object.extend({ replaceState: function(path) { var state = { path: path }; - get(this, 'history').replaceState(state, null, path); - // store state if browser doesn't support `history.state` if (!supportsHistoryState) { this._historyState = state; + } else { + get(this, 'history').replaceState(state, null, path); } // used for webkit workaround