mediawiki-extensions-Visual.../modules/ve2/ve.LeafNode.js
Trevor Parscal a774b3dbf6 Added test for getOffset map
And fixed ve.dm.DocumentFragment constructor to generate a correct offset map which creates references to branch nodes only

Change-Id: If9e515be0c63d272bfed9bf4da625a48edd36f48
2012-04-27 17:16:29 -07:00

15 lines
181 B
JavaScript

/**
* Mixin for leaf nodes
*
* @class
* @abstract
* @constructor
*/
ve.LeafNode = function() {
//
};
ve.LeafNode.prototype.canHaveChildren = function() {
return false;
};