2012-07-19 00:11:26 +00:00
|
|
|
/**
|
|
|
|
* VisualEditor LeafNode class.
|
2012-07-19 21:25:16 +00:00
|
|
|
*
|
2012-07-19 00:11:26 +00:00
|
|
|
* @copyright 2011-2012 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2011-11-10 19:26:02 +00:00
|
|
|
/**
|
2012-06-20 01:20:28 +00:00
|
|
|
* Mixin for leaf nodes.
|
|
|
|
*
|
2011-11-10 19:26:02 +00:00
|
|
|
* @class
|
|
|
|
* @abstract
|
|
|
|
* @constructor
|
|
|
|
*/
|
2012-08-07 01:50:44 +00:00
|
|
|
ve.LeafNode = function () {
|
2011-11-10 19:26:02 +00:00
|
|
|
//
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if this node has child nodes.
|
2012-06-20 01:20:28 +00:00
|
|
|
*
|
2011-11-10 19:26:02 +00:00
|
|
|
* @method
|
2012-02-06 23:50:56 +00:00
|
|
|
* @see {ve.Node.prototype.hasChildren}
|
2011-11-10 19:26:02 +00:00
|
|
|
* @returns {Boolean} Whether this node has children
|
|
|
|
*/
|
2012-08-07 01:50:44 +00:00
|
|
|
ve.LeafNode.prototype.hasChildren = function () {
|
2011-11-10 19:26:02 +00:00
|
|
|
return false;
|
|
|
|
};
|