mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-14 01:57:02 +00:00
255ce870e2
function() -> function () ){ -> ) { Change-Id: I20a85fcf79d7aec64f7f2559e84c0279550d4eea
31 lines
514 B
JavaScript
31 lines
514 B
JavaScript
/**
|
|
* VisualEditor LeafNode class.
|
|
*
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* 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;
|
|
};
|