diff --git a/modules/ext.RevisionSlider.Revision.js b/modules/ext.RevisionSlider.Revision.js index 1d29b1b5..c697f992 100644 --- a/modules/ext.RevisionSlider.Revision.js +++ b/modules/ext.RevisionSlider.Revision.js @@ -33,7 +33,7 @@ $.extend( Revision.prototype, { /** * @type {string[]} */ - tags: [], + tags: null, /** * @type {boolean} diff --git a/modules/ext.RevisionSlider.RevisionList.js b/modules/ext.RevisionSlider.RevisionList.js index 24c2f28b..b5b21524 100644 --- a/modules/ext.RevisionSlider.RevisionList.js +++ b/modules/ext.RevisionSlider.RevisionList.js @@ -66,6 +66,9 @@ $.extend( RevisionList.prototype, { return this.availableTags; }, + /** + * @return {Object.} + */ getUserGenders: function () { const userGenders = {}; this.revisions.forEach( function ( revision ) { diff --git a/src/RevisionSliderHooks.php b/src/RevisionSliderHooks.php index 0771bd8d..1122ba1b 100644 --- a/src/RevisionSliderHooks.php +++ b/src/RevisionSliderHooks.php @@ -79,7 +79,7 @@ class RevisionSliderHooks implements DifferenceEngineViewHeaderHook, GetPreferen $this->statsdDataFactory->increment( 'RevisionSlider.event.lazyload' ); } $out->addModuleStyles( 'ext.RevisionSlider.noscript' ); - $out->addJsConfigVars( 'extRevisionSliderTimeOffset', intval( $timeOffset ) ); + $out->addJsConfigVars( 'extRevisionSliderTimeOffset', $timeOffset ); $out->enableOOUI(); $out->prependHTML( $this->getContainerHtml( $autoExpand ) );