FIX: IE9 regression

This commit is contained in:
Robin Ward 2013-08-07 16:20:22 -04:00
parent fe3a69c271
commit 66f9506481
1 changed files with 4 additions and 4 deletions

View File

@ -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