Use short style to wire event reemission

Change-Id: Id39ecc8e96627a228c8da91628f769cab42f71bd
This commit is contained in:
Adam Wight 2022-06-30 15:54:15 +02:00
parent 68e2f6279a
commit d592c75623

View file

@ -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;