From c0fd46c89075f0993ab7743f68e46de6f8e512b0 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 23 Jun 2016 00:14:43 +0200 Subject: [PATCH] client/views: fix complex templates --- client/js/util/views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/util/views.js b/client/js/util/views.js index 2b39e7b1..15472db7 100644 --- a/client/js/util/views.js +++ b/client/js/util/views.js @@ -351,7 +351,7 @@ function replaceContent(target, source) { target.removeChild(target.lastChild); } if (source instanceof NodeList) { - for (let child of source) { + for (let child of Array.from(source)) { target.appendChild(child); } } else if (source instanceof Node) {