From 411dc7e138f040384b06cb19a0a773cf9de016eb Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 27 Mar 2019 14:21:28 +0100 Subject: [PATCH] broadway: Fix leftover dom modification not using display_commands --- gdk/broadway/broadway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js index 00c341c393..c6e537c909 100644 --- a/gdk/broadway/broadway.js +++ b/gdk/broadway/broadway.js @@ -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;