mediawiki-extensions-Visual.../modules/ve2/dm/ve.dm.LeafNode.js
Trevor Parscal c2d4a2d928 Added basic ve.ce nodes
* Also removed beforeSplice and afterSplice in favor of just plain splice which is the same as afterSplice used to be - beforeSplice was never used and it was making things more complex looking than needed

Change-Id: Icbbc57eac73a2a206ba35409ab57b3d1a49ab1a5
2012-04-30 16:58:41 -07:00

25 lines
624 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 );