broadway: Fix leftover dom modification not using display_commands

This commit is contained in:
Alexander Larsson 2019-03-27 14:21:28 +01:00
parent 141f758c5c
commit 411dc7e138

View File

@ -755,7 +755,7 @@ TransformNodes.prototype.insertNode = function(parent, posInParent, oldNode)
/* Remove children that are after the new length */
for (i = oldChildren.length - 1; i > len - 1; i--)
oldNode.removeChild(oldChildren[i]);
this.display_commands.push([DISPLAY_OP_DELETE_NODE, oldChildren[i]]);
/* NOTE: No need to modify the parent, we're keeping this node as is */
newNode = null;