Skip to content

Commit

Permalink
version 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmak1 committed Sep 24, 2023
1 parent 3e78fc8 commit 33c2e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cample",
"version": "3.1.2",
"version": "3.1.3",
"description": "Cample.js - moderately fast reactive javascript framework. Reactivity without Virtual DOM!",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/core/components/each/each.ts
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ export class Each extends DataComponent {
for (let i = 0; newFirstIndex < newLastIndex--; i++) {
const currentIndex = newFirstIndex + i;
const currentNewNode = newData[currentIndex];
const newKey = getCurrentKey(currentNewNode, currentIndex);
const { el, currentNode } = createElement(
currentNewNode,
index,
Expand All @@ -673,7 +674,7 @@ export class Each extends DataComponent {
isFirst,
currentIndex,
importData,
currentNewNode
newKey
);
if (currentNode) {
setElement(
Expand Down

0 comments on commit 33c2e3c

Please sign in to comment.