Index: trunk/extensions/VisualEditor/modules/es/models/es.DocumentModel.js |
— | — | @@ -1031,8 +1031,6 @@ |
1032 | 1032 | // So you can merge adjacent paragraphs, or listitems. And you can't merge a paragraph into |
1033 | 1033 | // a table row. There may be other rules we will want in here later, for instance, special |
1034 | 1034 | // casing merging a listitem into a paragraph. |
1035 | | - |
1036 | | - // wait, some nodes don't have types? Is this the top document node? |
1037 | 1035 | return ( |
1038 | 1036 | ( ( node1 && node2 ) && ( node1.getElementType() === node2.getElementType() ) ) && |
1039 | 1037 | ( node1.getParent() === node2.getParent() ) |