Merge "MWCategoryInputWidget: missing 'new' for cached redirected optionwidgets"

This commit is contained in:
jenkins-bot 2017-05-19 10:13:40 +00:00 committed by Gerrit Code Review
commit fbc835be12

View file

@ -238,7 +238,7 @@ ve.ui.MWCategoryInputWidget.prototype.getCategoryWidgetFromName = function ( nam
optionWidget, labelText; optionWidget, labelText;
if ( cachedData && cachedData.redirectFrom ) { if ( cachedData && cachedData.redirectFrom ) {
labelText = mw.Title.newFromText( cachedData.redirectFrom[ 0 ] ).getMainText(); labelText = mw.Title.newFromText( cachedData.redirectFrom[ 0 ] ).getMainText();
optionWidget = OO.ui.MenuOptionWidget( { optionWidget = new OO.ui.MenuOptionWidget( {
data: name, data: name,
autoFitLabel: false, autoFitLabel: false,
label: $( '<span>' ) label: $( '<span>' )