all files / src/ui/dialogs/ ve.ui.NodeDialog.js

42.86% Statements 6/14
100% Branches 0/0
0% Functions 0/4
42.86% Lines 6/14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61                                                                                                             
/*!
 * VisualEditor user interface NodeDialog class.
 *
 * @copyright 2011-2019 VisualEditor Team and others; see http://ve.mit-license.org
 */
 
/**
 * Dialog for working with a node.
 *
 * @class
 * @extends ve.ui.FragmentDialog
 * @mixins ve.ui.NodeWindow
 *
 * @constructor
 * @param {Object} [config] Configuration options
 */
ve.ui.NodeDialog = function VeUiNodeDialog( config ) {
	// Parent constructor
	ve.ui.NodeDialog.super.call( this, config );
 
	// Mixin constructor
	ve.ui.NodeWindow.call( this );
};
 
/* Inheritance */
 
OO.inheritClass( ve.ui.NodeDialog, ve.ui.FragmentDialog );
 
OO.mixinClass( ve.ui.NodeDialog, ve.ui.NodeWindow );
 
/**
 * @inheritdoc
 */
ve.ui.NodeDialog.prototype.initialize = function ( data ) {
	// Parent method
	ve.ui.NodeDialog.super.prototype.initialize.call( this, data );
 
	// Initialization
	this.$content.addClass( 've-ui-nodeDialog' );
};
 
/**
 * @inheritdoc
 */
ve.ui.NodeDialog.prototype.getSetupProcess = function ( data ) {
	// Parent method
	var process = ve.ui.NodeDialog.super.prototype.getSetupProcess.call( this, data );
	// Mixin method
	return ve.ui.NodeWindow.prototype.getSetupProcess.call( this, data, process );
};
 
/**
 * @inheritdoc
 */
ve.ui.NodeDialog.prototype.getTeardownProcess = function ( data ) {
	// Parent method
	var process = ve.ui.NodeDialog.super.prototype.getTeardownProcess.call( this, data );
	// Mixin method
	return ve.ui.NodeWindow.prototype.getTeardownProcess.call( this, data, process );
};