All files / src/ce/nodes ve.ce.TableCaptionNode.js

100% Statements 9/9
100% Branches 0/0
100% Functions 1/1
100% Lines 9/9

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                                1x   10x     10x     10x         1x   1x       1x   1x       1x  
/*!
 * VisualEditor ContentEditable TableCaptionNode class.
 *
 * @copyright See AUTHORS.txt
 */
 
/**
 * ContentEditable table caption node.
 *
 * @class
 * @extends ve.ce.BranchNode
 * @mixes ve.ce.ActiveNode
 * @constructor
 * @param {ve.dm.TableCaptionNode} model Model to observe
 * @param {Object} [config] Configuration options
 */
ve.ce.TableCaptionNode = function VeCeTableCaptionNode() {
	// Parent constructor
	ve.ce.TableCaptionNode.super.apply( this, arguments );
 
	// Mixin constructor
	ve.ce.ActiveNode.call( this );
 
	// DOM changes
	this.$element.addClass( 've-ce-tableCaptionNode' );
};
 
/* Inheritance */
 
OO.inheritClass( ve.ce.TableCaptionNode, ve.ce.BranchNode );
 
OO.mixinClass( ve.ce.TableCaptionNode, ve.ce.ActiveNode );
 
/* Static Properties */
 
ve.ce.TableCaptionNode.static.name = 'tableCaption';
 
ve.ce.TableCaptionNode.static.tagName = 'caption';
 
/* Registration */
 
ve.ce.nodeFactory.register( ve.ce.TableCaptionNode );