mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
71f36aa52b
Change-Id: I4dc06e9ea3b634fbd5034df721162098441ea368
20 lines
357 B
JavaScript
20 lines
357 B
JavaScript
module( 've.dm.LeafNode' );
|
|
|
|
/* Stubs */
|
|
|
|
ve.dm.LeafNodeStub = function() {
|
|
// Inheritance
|
|
ve.dm.LeafNode.call( this, 'leaf-stub' );
|
|
};
|
|
|
|
ve.dm.LeafNodeStub.rules = {
|
|
'canHaveChildren': false,
|
|
'canHaveGrandchildren': false
|
|
};
|
|
|
|
ve.extendClass( ve.dm.LeafNodeStub, ve.dm.LeafNode );
|
|
|
|
ve.dm.factory.register( 'leaf-stub', ve.dm.LeafNodeStub );
|
|
|
|
/* Tests */
|