Skip to content
Snippets Groups Projects
Unverified Commit b9513335 authored by Robert Long's avatar Robert Long Committed by GitHub
Browse files

Merge pull request #183 from mozilla/bug/171

Append all child elements with while loop.
parents 78fc88f0 90af1e08
No related branches found
No related tags found
No related merge requests found
...@@ -154,8 +154,8 @@ function attachTemplate(root, { selector, templateRoot }) { ...@@ -154,8 +154,8 @@ function attachTemplate(root, { selector, templateRoot }) {
} }
// Append all child elements // Append all child elements
for (const child of root.children) { while (root.children.length > 0) {
el.appendChild(child); el.appendChild(root.children[0]);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment