mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Avoid referencing methods via strings"
This commit is contained in:
commit
a52cb05804
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue