mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
e34ec4b479
Change-Id: Ibe53292f7269736750e03da49e5bb5913c0124ab
23 lines
580 B
JavaScript
23 lines
580 B
JavaScript
/**
|
|
* ContentEditable node that can not have any children.
|
|
*
|
|
* @class
|
|
* @abstract
|
|
* @constructor
|
|
* @extends {ve.LeafNode}
|
|
* @extends {ve.ce.Node}
|
|
* @param {String} type Symbolic name of node type
|
|
* @param model {ve.dm.LeafNode} Model to observe
|
|
* @param {jQuery} [$element] Element to use as a container
|
|
*/
|
|
ve.ce.LeafNode = function( type, model, $element ) {
|
|
// Inheritance
|
|
ve.LeafNode.call( this );
|
|
ve.ce.Node.call( this, type, model, $element );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
ve.extendClass( ve.ce.LeafNode, ve.LeafNode );
|
|
ve.extendClass( ve.ce.LeafNode, ve.ce.Node );
|