Revert "Avoid referencing methods via strings"

This reverts commit 48283d5f19.

Change-Id: Ifc2b7fb9e9fb7deaecb6c0475db0f9253e81869f
This commit is contained in:
Bartosz Dziewoński 2021-09-13 18:36:07 +00:00
parent 48283d5f19
commit a667045383

View file

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