Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -447,7 +447,7 @@ |
448 | 448 | var nodeToDelete = sourceNode; |
449 | 449 | es.DocumentNode.traverseUpstream( nodeToDelete, function( node ) { |
450 | 450 | if ( node.getParent().children.length === 1 ) { |
451 | | - nodeToDelete = sourceNode.getParent(); |
| 451 | + nodeToDelete = node.getParent(); |
452 | 452 | } else { |
453 | 453 | return false; |
454 | 454 | } |