All files / src/dm/nodes ve.dm.HorizontalRuleNode.js

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

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                                1x   2x     2x         1x   1x       1x   1x       1x  
/*!
 * VisualEditor DataModel HorizontalRuleNode class.
 *
 * @copyright See AUTHORS.txt
 */
 
/**
 * DataModel horizontal rule node.
 *
 * @class
 * @extends ve.dm.LeafNode
 * @mixins ve.dm.FocusableNode
 *
 * @constructor
 * @param {Object} [element] Reference to element in linear model
 */
ve.dm.HorizontalRuleNode = function VeDmHorizontalRuleNode() {
	// Parent constructor
	ve.dm.HorizontalRuleNode.super.apply( this, arguments );
 
	// Mixin constructors
	ve.dm.FocusableNode.call( this );
};
 
/* Inheritance */
 
OO.inheritClass( ve.dm.HorizontalRuleNode, ve.dm.LeafNode );
 
OO.mixinClass( ve.dm.HorizontalRuleNode, ve.dm.FocusableNode );
 
/* Static Properties */
 
ve.dm.HorizontalRuleNode.static.name = 'horizontalRule';
 
ve.dm.HorizontalRuleNode.static.matchTagNames = [ 'hr' ];
 
/* Registration */
 
ve.dm.modelRegistry.register( ve.dm.HorizontalRuleNode );