mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
02b0c7a6f4
Change-Id: I6d2307ce39da47ad2673dd439789a2f74632c59f
24 lines
588 B
JavaScript
24 lines
588 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.dm.Node );
|