Skip to content

Commit 1185f1d

Browse files
committed
tidy up
1 parent 7e97a6c commit 1185f1d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -376,35 +376,35 @@ export function destroy_children(signal) {
376376
}
377377

378378
/**
379-
* @param {import('./types.js').Effect} signal
379+
* @param {import('./types.js').Effect} effect
380380
* @returns {void}
381381
*/
382-
export function execute_effect(signal) {
383-
if ((signal.f & DESTROYED) !== 0) {
382+
export function execute_effect(effect) {
383+
if ((effect.f & DESTROYED) !== 0) {
384384
return;
385385
}
386386

387-
set_signal_status(signal, CLEAN);
387+
set_signal_status(effect, CLEAN);
388388

389-
const previous_effect = current_effect;
390-
const previous_component_context = current_component_context;
389+
var component_context = effect.ctx;
391390

392-
const component_context = signal.ctx;
391+
var previous_effect = current_effect;
392+
var previous_component_context = current_component_context;
393393

394-
current_effect = signal;
394+
current_effect = effect;
395395
current_component_context = component_context;
396396

397397
try {
398-
destroy_children(signal);
399-
signal.teardown?.();
400-
const teardown = execute_reaction_fn(signal);
401-
signal.teardown = typeof teardown === 'function' ? teardown : null;
398+
destroy_children(effect);
399+
effect.teardown?.();
400+
var teardown = execute_reaction_fn(effect);
401+
effect.teardown = typeof teardown === 'function' ? teardown : null;
402402
} finally {
403403
current_effect = previous_effect;
404404
current_component_context = previous_component_context;
405405
}
406406

407-
if ((signal.f & PRE_EFFECT) !== 0 && current_queued_pre_and_render_effects.length > 0) {
407+
if ((effect.f & PRE_EFFECT) !== 0 && current_queued_pre_and_render_effects.length > 0) {
408408
flush_local_pre_effects(component_context);
409409
}
410410
}

0 commit comments

Comments
 (0)