File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
packages/svelte/src/internal/client/reactivity Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,12 @@ export class Batch {
140140 batch . #callbacks. add ( fn ) ;
141141 }
142142
143- this . #remove( ) ;
144143 break ;
145144 }
146145 }
147146 }
148147
149- if ( merged ) {
150- this . #remove( ) ;
151- } else {
148+ if ( ! merged ) {
152149 var render_effects = this . render_effects ;
153150 var effects = this . effects ;
154151
@@ -203,10 +200,6 @@ export class Batch {
203200 this . #current. set ( source , source . v ) ;
204201 }
205202
206- #remove( ) {
207- batches . delete ( this ) ;
208- }
209-
210203 restore ( ) {
211204 current_batch = this ;
212205 }
@@ -221,7 +214,7 @@ export class Batch {
221214 }
222215
223216 if ( this . #pending === 0 ) {
224- this . #remove ( ) ;
217+ batches . delete ( this ) ;
225218 }
226219
227220 current_batch = null ;
You can’t perform that action at this time.
0 commit comments