mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +00:00
2cee2adb6d
* Added support for asking if a given node type can have children or grandchildren and what types of nodes can be it's parent or child * Removed canHaveChildren methods from leaf and branch nodes and converted use of them to depend on factory to read static rules from constructor lookup by type Change-Id: I9769f95647066576416bacb791c4b68dd0285b35
13 lines
201 B
JavaScript
13 lines
201 B
JavaScript
module( 've.dm.LeafNode' );
|
|
|
|
/* Stubs */
|
|
|
|
ve.dm.LeafNodeStub = function() {
|
|
// Inheritance
|
|
ve.dm.LeafNode.call( this, 'stub' );
|
|
};
|
|
|
|
ve.extendClass( ve.dm.LeafNodeStub, ve.dm.LeafNode );
|
|
|
|
/* Tests */
|