2012-04-30 23:58:41 +00:00
|
|
|
/**
|
|
|
|
* ContentEditable node that can not have any children.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @abstract
|
|
|
|
* @constructor
|
|
|
|
* @extends {ve.LeafNode}
|
|
|
|
* @extends {ve.ce.Node}
|
2012-05-05 00:50:54 +00:00
|
|
|
* @param {String} type Symbolic name of node type
|
2012-04-30 23:58:41 +00:00
|
|
|
* @param model {ve.dm.LeafNode} Model to observe
|
2012-05-01 02:38:42 +00:00
|
|
|
* @param {jQuery} [$element] Element to use as a container
|
2012-04-30 23:58:41 +00:00
|
|
|
*/
|
2012-05-05 00:50:54 +00:00
|
|
|
ve.ce.LeafNode = function( type, model, $element ) {
|
2012-04-30 23:58:41 +00:00
|
|
|
// Inheritance
|
|
|
|
ve.LeafNode.call( this );
|
2012-05-05 00:50:54 +00:00
|
|
|
ve.ce.Node.call( this, type, model, $element );
|
2012-05-10 05:43:46 +00:00
|
|
|
|
|
|
|
this.$.addClass("ve-ce-leaf");
|
2012-04-30 23:58:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.extendClass( ve.ce.LeafNode, ve.LeafNode );
|
|
|
|
ve.extendClass( ve.ce.LeafNode, ve.ce.Node );
|