-( function ( mw ) {
+( function () {
/**
* A floating menu widget for the filter list
*
this.$overlay.append( this.highlightPopup.$element );
// Count groups per view
+ // eslint-disable-next-line no-restricted-properties
$.each( groups, function ( groupName, groupModel ) {
if ( !groupModel.isHidden() ) {
viewGroupCount[ groupModel.getView() ] = viewGroupCount[ groupModel.getView() ] || 0;
}
} );
+ // eslint-disable-next-line no-restricted-properties
$.each( groups, function ( groupName, groupModel ) {
var currentItems = [],
view = groupModel.getView();
*/
mw.rcfilters.ui.MenuSelectWidget.prototype.onModelInitialize = function () {
this.menuInitialized = false;
+ // Set timeout for the menu to lazy build.
+ setTimeout( this.lazyMenuCreation.bind( this ) );
};
/**
mw.rcfilters.ui.MenuSelectWidget.prototype.setUserSelecting = function ( isSelecting ) {
this.userSelecting = !!isSelecting;
};
-}( mediaWiki ) );
+}() );