2013-04-17 17:53:26 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel InternalItemNode class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel internal item node.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.dm.BranchNode
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.dm.BranchNode[]} [children] Child nodes to attach
|
|
|
|
* @param {Object} [element] Reference to element in linear model
|
|
|
|
*/
|
|
|
|
ve.dm.InternalItemNode = function VeDmInternalItemNode( children, element ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.dm.BranchNode.call( this, children, element );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-10-11 21:44:09 +00:00
|
|
|
OO.inheritClass( ve.dm.InternalItemNode, ve.dm.BranchNode );
|
2013-04-17 17:53:26 +00:00
|
|
|
|
|
|
|
/* Static members */
|
|
|
|
|
|
|
|
ve.dm.InternalItemNode.static.name = 'internalItem';
|
|
|
|
|
|
|
|
ve.dm.InternalItemNode.static.matchTagNames = [];
|
|
|
|
|
|
|
|
ve.dm.InternalItemNode.static.handlesOwnChildren = true;
|
|
|
|
|
|
|
|
ve.dm.InternalItemNode.static.isInternal = true;
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
2013-12-06 02:34:44 +00:00
|
|
|
ve.dm.modelRegistry.register( ve.dm.InternalItemNode );
|