Merge "oojs: Replace parent with super"

This commit is contained in:
jenkins-bot 2024-09-17 07:20:36 +00:00 committed by Gerrit Code Review
commit 933f8dccb5
6 changed files with 8 additions and 8 deletions

View file

@ -19,7 +19,7 @@ var
*/
function Dialog( config ) {
// Parent constructor
Dialog.parent.call( this, config );
Dialog.super.call( this, config );
this.model = null;
this.modified = false;

View file

@ -10,7 +10,7 @@
*/
function LanguageResultWidget( config ) {
// Parent constructor
LanguageResultWidget.parent.call( this, config );
LanguageResultWidget.super.call( this, config );
// Mixin constructors
OO.ui.mixin.TabIndexedElement.call( this );

View file

@ -17,7 +17,7 @@ function LanguageSearchWidget( config ) {
}, config );
// Parent constructor
LanguageSearchWidget.parent.call( this, config );
LanguageSearchWidget.super.call( this, config );
// Properties
this.filteredLanguageResultWidgets = [];
@ -46,7 +46,7 @@ OO.inheritClass( LanguageSearchWidget, OO.ui.SearchWidget );
*/
LanguageSearchWidget.prototype.onQueryChange = function () {
// Parent method
LanguageSearchWidget.parent.prototype.onQueryChange.apply( this, arguments );
LanguageSearchWidget.super.prototype.onQueryChange.apply( this, arguments );
// Populate
this.addResults();

View file

@ -9,7 +9,7 @@ function ParamImportWidget( config ) {
config = config || {};
// Parent constructor
ParamImportWidget.parent.call( this, Object.assign( {
ParamImportWidget.super.call( this, Object.assign( {
icon: 'parameter-set'
}, config ) );

View file

@ -9,7 +9,7 @@
*/
function ParamSelectWidget( config ) {
// Parent constructor
ParamSelectWidget.parent.call( this, config );
ParamSelectWidget.super.call( this, config );
// Mixin constructors
OO.ui.mixin.DraggableGroupElement.call( this, Object.assign( {}, config, { $group: this.$element } ) );
@ -28,7 +28,7 @@ ParamSelectWidget.prototype.onMouseDown = function ( e ) {
if ( $( e.target ).closest( '.oo-ui-draggableElement-handle' ).length || e.shiftKey ) {
return true;
}
return ParamSelectWidget.parent.prototype.onMouseDown.apply( this, arguments );
return ParamSelectWidget.super.prototype.onMouseDown.apply( this, arguments );
};
module.exports = ParamSelectWidget;

View file

@ -12,7 +12,7 @@ function ParamWidget( data, config ) {
config = config || {};
// Parent constructor
ParamWidget.parent.call( this, Object.assign( {}, config, { data: data.key, icon: 'menu' } ) );
ParamWidget.super.call( this, Object.assign( {}, config, { data: data.key, icon: 'menu' } ) );
// Mixin constructors
OO.ui.mixin.DraggableElement.call( this, $.extend( { $handle: this.$icon } ) );