Skip to content

Commit 580d3f4

Browse files
author
Andrea Giammarchi
committed
Fix #13 - Do not remove wires when these are used to prepend
1 parent f4e5f31 commit 580d3f4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cjs/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ const applyDiff = (
288288
futureStart++,
289289
futureStart,
290290
currentIndex < currentLength ?
291-
get(currentNodes[currentIndex], 1) :
291+
get(currentNodes[currentIndex], 0) :
292292
before
293293
);
294294
break;

esm/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ const applyDiff = (
280280
futureStart++,
281281
futureStart,
282282
currentIndex < currentLength ?
283-
get(currentNodes[currentIndex], 1) :
283+
get(currentNodes[currentIndex], 0) :
284284
before
285285
);
286286
break;

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ var applyDiff = function applyDiff(diff, get, parentNode, futureNodes, futureSta
247247
case INSERTION:
248248
// TODO: bulk appends for sequential nodes
249249
live.set(futureNodes[futureStart], 1);
250-
append(get, parentNode, futureNodes, futureStart++, futureStart, currentIndex < currentLength ? get(currentNodes[currentIndex], 1) : before);
250+
append(get, parentNode, futureNodes, futureStart++, futureStart, currentIndex < currentLength ? get(currentNodes[currentIndex], 0) : before);
251251
break;
252252
case DELETION:
253253
currentIndex++;

min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)