Skip to content

Commit 831d6a8

Browse files
committed
little fix
1 parent 81115bc commit 831d6a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cample",
3-
"version": "3.2.0-alpha.47",
3+
"version": "3.2.0-alpha.48",
44
"description": "Cample.js - one of the fastest frameworks without a virtual DOM on the Internet!",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/core/cample.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export class Cample {
7070
.firstChild as HTMLTemplateElement;
7171
const nodes = elWrapper.content.childNodes;
7272
el.innerHTML = "";
73-
for (let i = 0; i < nodes.length; i++) {
74-
const currentNode = nodes[i];
73+
while (nodes.length) {
74+
const currentNode = nodes[nodes.length - 1];
7575
el.appendChild(currentNode);
7676
}
7777
this._el = el;

0 commit comments

Comments
 (0)