mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Removed duplicate node rules from tests
These methods are wrappers for the model methods where the rules are actually being applied Change-Id: I08be359010fa9fa81cd3a8aa5152083f92dc0b9c
This commit is contained in:
parent
8d07a4e08c
commit
7168b4e041
|
@ -7,12 +7,6 @@ ve.ce.LeafNodeStub = function( model ) {
|
||||||
ve.ce.LeafNode.call( this, 'leaf-stub', model );
|
ve.ce.LeafNode.call( this, 'leaf-stub', model );
|
||||||
};
|
};
|
||||||
|
|
||||||
ve.ce.LeafNodeStub.rules = {
|
|
||||||
'canHaveChildren': false,
|
|
||||||
'canHaveGrandchildren': false,
|
|
||||||
'isWrapped': true
|
|
||||||
};
|
|
||||||
|
|
||||||
ve.extendClass( ve.ce.LeafNodeStub, ve.ce.LeafNode );
|
ve.extendClass( ve.ce.LeafNodeStub, ve.ce.LeafNode );
|
||||||
|
|
||||||
ve.ce.factory.register( 'leaf-stub', ve.ce.LeafNodeStub );
|
ve.ce.factory.register( 'leaf-stub', ve.ce.LeafNodeStub );
|
||||||
|
|
Loading…
Reference in a new issue