mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
429225fb57
Change-Id: Id75a097ae4958029caf0a0315343c2fab9c99b89
24 lines
347 B
JavaScript
24 lines
347 B
JavaScript
/**
|
|
* Mixin for leaf nodes.
|
|
*
|
|
* @class
|
|
* @abstract
|
|
* @constructor
|
|
*/
|
|
ve.LeafNode = function() {
|
|
//
|
|
};
|
|
|
|
/* Methods */
|
|
|
|
/**
|
|
* Checks if this node has child nodes.
|
|
*
|
|
* @method
|
|
* @see {ve.Node.prototype.hasChildren}
|
|
* @returns {Boolean} Whether this node has children
|
|
*/
|
|
ve.LeafNode.prototype.hasChildren = function() {
|
|
return false;
|
|
};
|