mediawiki-extensions-Visual.../modules/ve/dm/ve.dm.LeafNode.js
Catrope 6afed5e5cc Move ve2/ back to ve/
Change-Id: Ie51d8e48171fb1f84045d1560ee603cee62b91f6
2012-06-19 18:20:28 -07:00

25 lines
622 B
JavaScript

/**
* DataModel node that can not have children.
*
* @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
* @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 );
ve.LeafNode.call( this );
};
/* Methods */
/* Inheritance */
ve.extendClass( ve.dm.LeafNode, ve.LeafNode );
ve.extendClass( ve.dm.LeafNode, ve.dm.Node );