mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Use short style to wire event reemission"
This commit is contained in:
commit
fe8dd8f604
|
@ -56,15 +56,6 @@ ve.ui.MWTransclusionOutlineWidget.prototype.onReplacePart = function ( removed,
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {string} pageName
|
||||
* @fires focusPageByName
|
||||
*/
|
||||
ve.ui.MWTransclusionOutlineWidget.prototype.onTransclusionPartSelected = function ( pageName ) {
|
||||
this.emit( 'focusPageByName', pageName );
|
||||
};
|
||||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
|
@ -109,7 +100,7 @@ ve.ui.MWTransclusionOutlineWidget.prototype.addPartWidget = function ( part, new
|
|||
|
||||
widget.connect( this, {
|
||||
transclusionPartSoftSelected: 'setSelectionByPageName',
|
||||
transclusionPartSelected: 'onTransclusionPartSelected'
|
||||
transclusionPartSelected: [ 'emit', 'focusPageByName' ]
|
||||
} );
|
||||
|
||||
this.partWidgets[ part.getId() ] = widget;
|
||||
|
|
Loading…
Reference in a new issue