2012-04-19 20:54:34 +00:00
|
|
|
/**
|
2012-04-30 23:58:41 +00:00
|
|
|
* DataModel node that can not have children.
|
2012-05-14 22:05:09 +00:00
|
|
|
*
|
2012-04-19 20:54:34 +00:00
|
|
|
* @class
|
|
|
|
* @abstract
|
|
|
|
* @constructor
|
|
|
|
* @extends {ve.LeafNode}
|
|
|
|
* @extends {ve.dm.Node}
|
2012-05-17 03:25:43 +00:00
|
|
|
* @param {String} type Symbolic name of node type
|
2012-04-19 20:54:34 +00:00
|
|
|
* @param {Integer} [length] Length of content data in document
|
|
|
|
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
|
|
|
*/
|
|
|
|
ve.dm.LeafNode = function( type, length, attributes ) {
|
|
|
|
// Inheritance
|
|
|
|
ve.dm.Node.call( this, type, length, attributes );
|
2012-04-20 00:45:58 +00:00
|
|
|
ve.LeafNode.call( this );
|
2012-04-19 20:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.extendClass( ve.dm.LeafNode, ve.LeafNode );
|
|
|
|
ve.extendClass( ve.dm.LeafNode, ve.dm.Node );
|