0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 13:16:31 -05:00

change the walker's currentNode to reflect the changes being made to the tree

This commit is contained in:
priceld 2015-12-01 10:53:30 -05:00
parent 987f3afd52
commit abfebbab16

View file

@ -425,6 +425,7 @@ var removeZWS = function ( root ) {
parent = node.parentNode; parent = node.parentNode;
parent.removeChild( node ); parent.removeChild( node );
node = parent; node = parent;
walker.currentNode = parent;
} while ( isInline( node ) && !getLength( node ) ); } while ( isInline( node ) && !getLength( node ) );
break; break;
} else { } else {