mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Comment cleanup
This commit is contained in:
parent
44ea20c406
commit
b13b805f2b
|
@ -1031,8 +1031,6 @@ es.DocumentModel.prototype.prepareRemoval = function( range ) {
|
|||
// So you can merge adjacent paragraphs, or listitems. And you can't merge a paragraph into
|
||||
// a table row. There may be other rules we will want in here later, for instance, special
|
||||
// casing merging a listitem into a paragraph.
|
||||
|
||||
// wait, some nodes don't have types? Is this the top document node?
|
||||
return (
|
||||
( ( node1 && node2 ) && ( node1.getElementType() === node2.getElementType() ) ) &&
|
||||
( node1.getParent() === node2.getParent() )
|
||||
|
|
Loading…
Reference in a new issue