Merge "Avoid referencing methods via strings"

This commit is contained in:
jenkins-bot 2021-09-13 13:28:19 +00:00 committed by Gerrit Code Review
commit a52cb05804

View file

@ -179,7 +179,7 @@ ve.ui.MWTransclusionOutlineParameterSelectWidget.prototype.onDocumentKeyDown = f
case OO.ui.Keys.SPACE:
item = this.findHighlightedItem();
if ( item ) {
this[ item.isSelected() ? 'unselectItem' : 'selectItem' ]( item );
( item.isSelected() ? this.unselectItem : this.selectItem )( item );
this.emit( 'templateParameterSelectionChanged', item, item.isSelected() );
}
e.preventDefault();