2012-07-19 00:11:26 +00:00
|
|
|
/**
|
|
|
|
* VisualEditor data model LeafNode class.
|
2012-07-19 21:25:16 +00:00
|
|
|
*
|
2012-07-19 00:11:26 +00:00
|
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2012-02-06 23:50:56 +00:00
|
|
|
/**
|
2012-06-20 01:20:28 +00:00
|
|
|
* DataModel node that can not have children.
|
|
|
|
*
|
2012-02-06 23:50:56 +00:00
|
|
|
* @class
|
|
|
|
* @abstract
|
|
|
|
* @constructor
|
|
|
|
* @extends {ve.LeafNode}
|
|
|
|
* @extends {ve.dm.Node}
|
|
|
|
* @param {String} type Symbolic name of node type
|
|
|
|
* @param {Integer} [length] Length of content data in document
|
2012-06-20 01:20:28 +00:00
|
|
|
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
2012-08-16 17:53:33 +00:00
|
|
|
* @param {Object} [internal] Reference to internal data object
|
2012-02-06 23:50:56 +00:00
|
|
|
*/
|
2012-08-16 17:53:33 +00:00
|
|
|
ve.dm.LeafNode = function ( type, length, attributes, internal ) {
|
2012-02-06 23:50:56 +00:00
|
|
|
// Inheritance
|
2012-08-16 17:53:33 +00:00
|
|
|
ve.dm.Node.call( this, type, length, attributes, internal );
|
2012-02-06 23:50:56 +00:00
|
|
|
ve.LeafNode.call( this );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2012-06-22 17:50:41 +00:00
|
|
|
ve.extendClass( ve.dm.LeafNode, ve.LeafNode, ve.dm.Node );
|