Debian Codegraph @

extensions/VisualEditor/lib/ve/src/dm/nodes/ve.dm.HorizontalRuleNode.js

raw symbols SCIP
1 /*!
2 * VisualEditor DataModel HorizontalRuleNode class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * DataModel horizontal rule node.
9 *
10 * @class
11 * @extends ve.dm.LeafNode
12 * @mixes ve.dm.FocusableNode
13 *
14 * @constructor
15 * @param {Object} [element] Reference to element in linear model
16 */
17 ve.dm.HorizontalRuleNode = function VeDmHorizontalRuleNode() {
18 // Parent constructor
19 ve.dm.HorizontalRuleNode.super.apply( this, arguments );
20
21 // Mixin constructors
22 ve.dm.FocusableNode.call( this );
23 };
24
25 /* Inheritance */
26
27 OO.inheritClass( ve.dm.HorizontalRuleNode, ve.dm.LeafNode );
28
29 OO.mixinClass( ve.dm.HorizontalRuleNode, ve.dm.FocusableNode );
30
31 /* Static Properties */
32
33 ve.dm.HorizontalRuleNode.static.name = 'horizontalRule';
34
35 ve.dm.HorizontalRuleNode.static.matchTagNames = [ 'hr' ];
36
37 /* Registration */
38
39 ve.dm.modelRegistry.register( ve.dm.HorizontalRuleNode );