mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Update constructors of inspectors and dialogs as per changes in I345d6e6
This is harmless since the values were being passed through anyway. Change-Id: Ie81afa6b5929047b624b4376f7d70db7a7d675a4
This commit is contained in:
parent
27cda86183
commit
2a08584e8c
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWTransclusionDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWAdvancedTransclusionDialog = function VeUiMWAdvancedTransclusionDialog( windowSet, config ) {
|
||||
ve.ui.MWAdvancedTransclusionDialog = function VeUiMWAdvancedTransclusionDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWTransclusionDialog.call( this, windowSet, config );
|
||||
ve.ui.MWTransclusionDialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -13,15 +13,15 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWBetaWelcomeDialog = function VeUiMWBetaWelcomeDialog( windowSet, config ) {
|
||||
ve.ui.MWBetaWelcomeDialog = function VeUiMWBetaWelcomeDialog( surface, config ) {
|
||||
// Configuration initialization
|
||||
config = ve.extendObject( { 'size': 'medium', 'footless': false }, config );
|
||||
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
* @extends ve.ui.CommandHelpDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWCommandHelpDialog = function VeUiMWCommandHelpDialog( windowSet, config ) {
|
||||
ve.ui.MWCommandHelpDialog = function VeUiMWCommandHelpDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.CommandHelpDialog.call( this, windowSet, config );
|
||||
ve.ui.CommandHelpDialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWMediaEditDialog = function VeUiMWMediaEditDialog( windowSet, config ) {
|
||||
ve.ui.MWMediaEditDialog = function VeUiMWMediaEditDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
|
||||
// Properties
|
||||
this.mediaNode = null;
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWMediaInsertDialog = function VeUiMWMediaInsertDialog( windowSet, config ) {
|
||||
ve.ui.MWMediaInsertDialog = function VeUiMWMediaInsertDialog( surface, config ) {
|
||||
// Configuration initialization
|
||||
config = ve.extendObject( { 'footless': true }, config );
|
||||
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
|
||||
// Properties
|
||||
this.item = null;
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWMetaDialog = function VeUiMWMetaDialog( windowSet, config ) {
|
||||
ve.ui.MWMetaDialog = function VeUiMWMetaDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWReferenceDialog = function VeUiMWReferenceDialog( windowSet, config ) {
|
||||
ve.ui.MWReferenceDialog = function VeUiMWReferenceDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
|
||||
// Properties
|
||||
this.ref = null;
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWReferenceListDialog = function VeUiMWReferenceListDialog( windowSet, config ) {
|
||||
ve.ui.MWReferenceListDialog = function VeUiMWReferenceListDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -17,15 +17,15 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Config options
|
||||
*/
|
||||
ve.ui.MWSaveDialog = function VeUiMWSaveDialog( windowSet, config ) {
|
||||
ve.ui.MWSaveDialog = function VeUiMWSaveDialog( surface, config ) {
|
||||
// Configuration initialization
|
||||
config = ve.extendObject( { 'size': 'medium' }, config );
|
||||
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
|
||||
// Properties
|
||||
this.sanityCheckVerified = false;
|
||||
|
|
|
@ -12,15 +12,15 @@
|
|||
* @extends ve.ui.MWTransclusionDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWTemplateDialog = function VeUiMWTemplateDialog( windowSet, config ) {
|
||||
ve.ui.MWTemplateDialog = function VeUiMWTemplateDialog( surface, config ) {
|
||||
// Configuration initialization
|
||||
config = ve.extendObject( { 'size': 'medium' }, config );
|
||||
|
||||
// Parent constructor
|
||||
ve.ui.MWTransclusionDialog.call( this, windowSet, config );
|
||||
ve.ui.MWTransclusionDialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWDialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWTransclusionDialog = function VeUiMWTransclusionDialog( windowSet, config ) {
|
||||
ve.ui.MWTransclusionDialog = function VeUiMWTransclusionDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWDialog.call( this, windowSet, config );
|
||||
ve.ui.MWDialog.call( this, surface, config );
|
||||
|
||||
// Properties
|
||||
this.node = null;
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWExtensionInspector
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this inspector is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWAlienExtensionInspector = function VeUiMWAlienExtensionInspector( windowSet, config ) {
|
||||
ve.ui.MWAlienExtensionInspector = function VeUiMWAlienExtensionInspector( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWExtensionInspector.call( this, windowSet, config );
|
||||
ve.ui.MWExtensionInspector.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
* @extends ve.ui.Inspector
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this inspector is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWExtensionInspector = function VeUiMWExtensionInspector( windowSet, config ) {
|
||||
ve.ui.MWExtensionInspector = function VeUiMWExtensionInspector( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.Inspector.call( this, windowSet, config );
|
||||
ve.ui.Inspector.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
* @extends ve.ui.MWExtensionInspector
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this inspector is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWGalleryInspector = function VeUiMWGalleryInspector( windowSet, config ) {
|
||||
ve.ui.MWGalleryInspector = function VeUiMWGalleryInspector( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWExtensionInspector.call( this, windowSet, config );
|
||||
ve.ui.MWExtensionInspector.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWExtensionInspector
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this inspector is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWHieroInspector = function VeUiMWHieroInspector( windowSet, config ) {
|
||||
ve.ui.MWHieroInspector = function VeUiMWHieroInspector( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWExtensionInspector.call( this, windowSet, config );
|
||||
ve.ui.MWExtensionInspector.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
* @extends ve.ui.LinkInspector
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this inspector is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWLinkInspector = function VeUiMWLinkInspector( windowSet, config ) {
|
||||
ve.ui.MWLinkInspector = function VeUiMWLinkInspector( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.LinkInspector.call( this, windowSet, config );
|
||||
ve.ui.LinkInspector.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
* @extends ve.ui.MWExtensionInspector
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this inspector is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWMathInspector = function VeUiMWMathInspector( windowSet, config ) {
|
||||
ve.ui.MWMathInspector = function VeUiMWMathInspector( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.MWExtensionInspector.call( this, windowSet, config );
|
||||
ve.ui.MWExtensionInspector.call( this, surface, config );
|
||||
|
||||
this.onChangeHandler = ve.debounce( ve.bind( this.updatePreview, this ), 250 );
|
||||
};
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
* @extends ve.ui.Dialog
|
||||
*
|
||||
* @constructor
|
||||
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
||||
* @param {ve.ui.Surface} surface Surface inspector is for
|
||||
* @param {Object} [config] Configuration options
|
||||
*/
|
||||
ve.ui.MWDialog = function VeUiMWDialog( windowSet, config ) {
|
||||
ve.ui.MWDialog = function VeUiMWDialog( surface, config ) {
|
||||
// Parent constructor
|
||||
ve.ui.Dialog.call( this, windowSet, config );
|
||||
ve.ui.Dialog.call( this, surface, config );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
Loading…
Reference in a new issue