We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81115bc commit 831d6a8Copy full SHA for 831d6a8
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "cample",
3
- "version": "3.2.0-alpha.47",
+ "version": "3.2.0-alpha.48",
4
"description": "Cample.js - one of the fastest frameworks without a virtual DOM on the Internet!",
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
src/core/cample.ts
@@ -70,8 +70,8 @@ export class Cample {
70
.firstChild as HTMLTemplateElement;
71
const nodes = elWrapper.content.childNodes;
72
el.innerHTML = "";
73
- for (let i = 0; i < nodes.length; i++) {
74
- const currentNode = nodes[i];
+ while (nodes.length) {
+ const currentNode = nodes[nodes.length - 1];
75
el.appendChild(currentNode);
76
}
77
this._el = el;
0 commit comments