Skip to content

Commit f9c2b9e

Browse files
committed
tidy up
1 parent 7feef72 commit f9c2b9e

File tree

1 file changed

+2
-4
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+2
-4
lines changed

packages/svelte/src/internal/client/dom/blocks/each.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ function pause_effects(state, to_destroy, controlled_anchor) {
126126
}
127127

128128
destroy_items(state, to_destroy);
129-
130-
// if (state.first === to_destroy[0]) {
131-
// state.first = to_destroy[0].prev;
132-
// }
133129
} else {
134130
group = {
135131
remaining,
@@ -147,6 +143,8 @@ function pause_effects(state, to_destroy, controlled_anchor) {
147143
* @param {EachItem[]} to_destroy
148144
*/
149145
function destroy_items(state, to_destroy) {
146+
// TODO only destroy effects if no pending batch needs them. otherwise,
147+
// just set `item.o` back to `false`
150148
for (var i = 0; i < to_destroy.length; i++) {
151149
var item = to_destroy[i];
152150

0 commit comments

Comments
 (0)