Comment cleanup

This commit is contained in:
Trevor Parscal 2011-11-04 18:37:07 +00:00
parent 44ea20c406
commit b13b805f2b

View file

@ -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() )