All files / src/ui/inspectors ve.ui.NodeInspector.js

100% Statements 14/14
100% Branches 0/0
100% Functions 4/4
100% Lines 14/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 62 63                                1x   1x     1x         1x   1x             1x   1x     1x           1x   4x   4x           1x   4x   4x    
/*!
 * VisualEditor user interface NodeInspector class.
 *
 * @copyright See AUTHORS.txt
 */
 
/**
 * Inspector for working with a node.
 *
 * @class
 * @extends ve.ui.FragmentInspector
 * @mixins ve.ui.NodeWindow
 *
 * @constructor
 * @param {Object} [config] Configuration options
 */
ve.ui.NodeInspector = function VeUiNodeInspector() {
	// Parent constructor
	ve.ui.NodeInspector.super.apply( this, arguments );
 
	// Mixin constructor
	ve.ui.NodeWindow.call( this );
};
 
/* Inheritance */
 
OO.inheritClass( ve.ui.NodeInspector, ve.ui.FragmentInspector );
 
OO.mixinClass( ve.ui.NodeInspector, ve.ui.NodeWindow );
 
/* Methods */
 
/**
 * @inheritdoc
 */
ve.ui.NodeInspector.prototype.initialize = function ( data ) {
	// Parent method
	ve.ui.NodeInspector.super.prototype.initialize.call( this, data );
 
	// Initialization
	this.$content.addClass( 've-ui-nodeInspector' );
};
 
/**
 * @inheritdoc
 */
ve.ui.NodeInspector.prototype.getSetupProcess = function ( data ) {
	// Parent method
	var process = ve.ui.NodeInspector.super.prototype.getSetupProcess.call( this, data );
	// Mixin method
	return ve.ui.NodeWindow.prototype.getSetupProcess.call( this, data, process );
};
 
/**
 * @inheritdoc
 */
ve.ui.NodeInspector.prototype.getTeardownProcess = function ( data ) {
	// Parent method
	var process = ve.ui.NodeInspector.super.prototype.getTeardownProcess.call( this, data );
	// Mixin method
	return ve.ui.NodeWindow.prototype.getTeardownProcess.call( this, data, process );
};