mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-27 16:50:09 +00:00
Merge "Various tiny clean-ups"
This commit is contained in:
commit
8f79cb6ad9
|
@ -33,7 +33,7 @@ $.extend( Revision.prototype, {
|
|||
/**
|
||||
* @type {string[]}
|
||||
*/
|
||||
tags: [],
|
||||
tags: null,
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
|
|
|
@ -66,6 +66,9 @@ $.extend( RevisionList.prototype, {
|
|||
return this.availableTags;
|
||||
},
|
||||
|
||||
/**
|
||||
* @return {Object.<string,string>}
|
||||
*/
|
||||
getUserGenders: function () {
|
||||
const userGenders = {};
|
||||
this.revisions.forEach( function ( revision ) {
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue