mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 15:36:47 +00:00
oojs: Replace parent with super
Change-Id: Ibab659920d4a6e44fde53299c5677fbfe346d93f
This commit is contained in:
parent
b3fbe6e7c3
commit
4993f74649
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 ) );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 } ) );
|
||||
|
|
Loading…
Reference in a new issue