mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
a774b3dbf6
And fixed ve.dm.DocumentFragment constructor to generate a correct offset map which creates references to branch nodes only Change-Id: If9e515be0c63d272bfed9bf4da625a48edd36f48
15 lines
181 B
JavaScript
15 lines
181 B
JavaScript
/**
|
|
* Mixin for leaf nodes
|
|
*
|
|
* @class
|
|
* @abstract
|
|
* @constructor
|
|
*/
|
|
ve.LeafNode = function() {
|
|
//
|
|
};
|
|
|
|
ve.LeafNode.prototype.canHaveChildren = function() {
|
|
return false;
|
|
};
|