mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
6d15028c68
Change-Id: I97e1570ffba368e570b69085daa2798b8b2725f9
24 lines
348 B
JavaScript
24 lines
348 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;
|
|
};
|