mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 11:40:43 +00:00
Remove obsolete IE9 safe guard
Change-Id: I350cc395cb0ab673699cda03f6da19c9470ee7bb
This commit is contained in:
parent
040f6c28ae
commit
9f2f774cc4
|
@ -100,14 +100,11 @@ $.extend( DiffPage.prototype, {
|
||||||
* @param {SliderView} sliderView
|
* @param {SliderView} sliderView
|
||||||
*/
|
*/
|
||||||
replaceState: function ( diff, oldid, sliderView ) {
|
replaceState: function ( diff, oldid, sliderView ) {
|
||||||
// IE9 does not have history.replaceState()
|
history.replaceState(
|
||||||
if ( typeof history.replaceState === 'function' ) {
|
this.getStateObject( diff, oldid, sliderView ),
|
||||||
history.replaceState(
|
$( document ).find( 'title' ).text(),
|
||||||
this.getStateObject( diff, oldid, sliderView ),
|
this.getStateUrl( diff, oldid )
|
||||||
$( document ).find( 'title' ).text(),
|
);
|
||||||
this.getStateUrl( diff, oldid )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -118,14 +115,11 @@ $.extend( DiffPage.prototype, {
|
||||||
* @param {SliderView} sliderView
|
* @param {SliderView} sliderView
|
||||||
*/
|
*/
|
||||||
pushState: function ( diff, oldid, sliderView ) {
|
pushState: function ( diff, oldid, sliderView ) {
|
||||||
// IE9 does not have history.pushState()
|
history.pushState(
|
||||||
if ( typeof history.pushState === 'function' ) {
|
this.getStateObject( diff, oldid, sliderView ),
|
||||||
history.pushState(
|
$( document ).find( 'title' ).text(),
|
||||||
this.getStateObject( diff, oldid, sliderView ),
|
this.getStateUrl( diff, oldid )
|
||||||
$( document ).find( 'title' ).text(),
|
);
|
||||||
this.getStateUrl( diff, oldid )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue