Skip to content

Commit dd0ec00

Browse files
committed
tidy
1 parent a74ee23 commit dd0ec00

File tree

1 file changed

+6
-6
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+6
-6
lines changed

packages/svelte/src/internal/client/reactivity/effects.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ function push_effect(effect, parent_effect) {
8282
* @returns {Effect}
8383
*/
8484
function create_effect(type, fn, sync, push = true) {
85-
var parent_effect = active_effect;
85+
var parent = active_effect;
8686

8787
if (DEV) {
8888
// Ensure the parent is never an inspect effect
89-
while (parent_effect !== null && (parent_effect.f & INSPECT_EFFECT) !== 0) {
90-
parent_effect = parent_effect.parent;
89+
while (parent !== null && (parent.f & INSPECT_EFFECT) !== 0) {
90+
parent = parent.parent;
9191
}
9292
}
9393

@@ -102,7 +102,7 @@ function create_effect(type, fn, sync, push = true) {
102102
fn,
103103
last: null,
104104
next: null,
105-
parent: parent_effect,
105+
parent,
106106
prev: null,
107107
teardown: null,
108108
transitions: null,
@@ -136,8 +136,8 @@ function create_effect(type, fn, sync, push = true) {
136136
(effect.f & (EFFECT_HAS_DERIVED | BOUNDARY_EFFECT)) === 0;
137137

138138
if (!inert && push) {
139-
if (parent_effect !== null) {
140-
push_effect(effect, parent_effect);
139+
if (parent !== null) {
140+
push_effect(effect, parent);
141141
}
142142

143143
// if we're in a derived, add the effect there too

0 commit comments

Comments
 (0)