mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "MWCategoryInputWidget: missing 'new' for cached redirected optionwidgets"
This commit is contained in:
commit
fbc835be12
|
@ -238,7 +238,7 @@ ve.ui.MWCategoryInputWidget.prototype.getCategoryWidgetFromName = function ( nam
|
|||
optionWidget, labelText;
|
||||
if ( cachedData && cachedData.redirectFrom ) {
|
||||
labelText = mw.Title.newFromText( cachedData.redirectFrom[ 0 ] ).getMainText();
|
||||
optionWidget = OO.ui.MenuOptionWidget( {
|
||||
optionWidget = new OO.ui.MenuOptionWidget( {
|
||||
data: name,
|
||||
autoFitLabel: false,
|
||||
label: $( '<span>' )
|
||||
|
|
Loading…
Reference in a new issue