client/views: fix complex templates

This commit is contained in:
rr- 2016-06-23 00:14:43 +02:00
parent eb09677bf8
commit c0fd46c890
1 changed files with 1 additions and 1 deletions

View File

@ -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) {