mediawiki-extensions-Visual.../modules/ve/ve.LeafNode.js
Catrope 74ed8e8766 Rename ve_foo_bar back to VeFooBar per discussion
Change-Id: Ibf6d4f08c4761727b2e3952a76e474c8221b38f9
2012-09-06 16:15:55 -07:00

31 lines
524 B
JavaScript

/**
* VisualEditor LeafNode mixin.
*
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Mixin for leaf nodes.
*
* @mixin
* @abstract
* @constructor
*/
ve.LeafNode = function VeLeafNode() {
//
};
/* 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;
};