Merge "Various tiny clean-ups"

This commit is contained in:
jenkins-bot 2024-01-12 09:48:13 +00:00 committed by Gerrit Code Review
commit 8f79cb6ad9
3 changed files with 5 additions and 2 deletions

View file

@ -33,7 +33,7 @@ $.extend( Revision.prototype, {
/**
* @type {string[]}
*/
tags: [],
tags: null,
/**
* @type {boolean}

View file

@ -66,6 +66,9 @@ $.extend( RevisionList.prototype, {
return this.availableTags;
},
/**
* @return {Object.<string,string>}
*/
getUserGenders: function () {
const userGenders = {};
this.revisions.forEach( function ( revision ) {

View file

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