mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 17:18:41 +00:00
6afed5e5cc
Change-Id: Ie51d8e48171fb1f84045d1560ee603cee62b91f6
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;
|
|
};
|