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