Debian Codegraph @

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

raw symbols SCIP
1 /*!
2 * VisualEditor DataModel TableCaptionNode class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * DataModel table caption node.
9 *
10 * @class
11 * @extends ve.dm.BranchNode
12 *
13 * @constructor
14 * @param {Object} [element] Reference to element in linear model
15 * @param {ve.dm.Node[]} [children]
16 */
17 ve.dm.TableCaptionNode = function VeDmTableCaptionNode() {
18 // Parent constructor
19 ve.dm.TableCaptionNode.super.apply( this, arguments );
20 };
21
22 /* Inheritance */
23
24 OO.inheritClass( ve.dm.TableCaptionNode, ve.dm.BranchNode );
25
26 /* Static Properties */
27
28 ve.dm.TableCaptionNode.static.name = 'tableCaption';
29
30 ve.dm.TableCaptionNode.static.parentNodeTypes = [ 'table' ];
31
32 ve.dm.TableCaptionNode.static.matchTagNames = [ 'caption' ];
33
34 /* Registration */
35
36 ve.dm.modelRegistry.register( ve.dm.TableCaptionNode );