pull/15844/head
Rich Harris 3 months ago
parent 8ffa72699c
commit c0283713e6

@ -140,15 +140,12 @@ export class Batch {
batch.#callbacks.add(fn); batch.#callbacks.add(fn);
} }
this.#remove();
break; break;
} }
} }
} }
if (merged) { if (!merged) {
this.#remove();
} else {
var render_effects = this.render_effects; var render_effects = this.render_effects;
var effects = this.effects; var effects = this.effects;
@ -203,10 +200,6 @@ export class Batch {
this.#current.set(source, source.v); this.#current.set(source, source.v);
} }
#remove() {
batches.delete(this);
}
restore() { restore() {
current_batch = this; current_batch = this;
} }
@ -221,7 +214,7 @@ export class Batch {
} }
if (this.#pending === 0) { if (this.#pending === 0) {
this.#remove(); batches.delete(this);
} }
current_batch = null; current_batch = null;

Loading…
Cancel
Save