oojs: Replace parent with super

Change-Id: Ibab659920d4a6e44fde53299c5677fbfe346d93f
This commit is contained in:
Ed Sanders 2024-09-16 15:52:34 +01:00
parent b3fbe6e7c3
commit 4993f74649
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 } ) );