Skip to content

Commit ec6a9ac

Browse files
vaibhav raivaibhav rai
vaibhav rai
authored and
vaibhav rai
committed
make variable name more relatable
1 parent 93edf26 commit ec6a9ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/runtime/internal/scheduler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export function flush() {
4545
for (let i = 0; i < dirty_components.length; i += 1) {
4646
const component = dirty_components[i];
4747
set_current_component(component);
48-
const is_dirty_from_binding = previous_dirty_components.indexOf(component) > -1;
49-
update(component.$$, is_dirty_from_binding);
48+
const is_previous_dirty = previous_dirty_components.indexOf(component) > -1;
49+
update(component.$$, is_previous_dirty);
5050
}
5151
previous_dirty_components = [];
5252
set_current_component(null);
@@ -83,14 +83,14 @@ export function flush() {
8383
seen_callbacks.clear();
8484
}
8585

86-
function update($$, is_dirty_from_binding) {
86+
function update($$, is_previous_dirty) {
8787
if ($$.fragment !== null) {
8888
$$.update();
89-
if (!is_dirty_from_binding) run_all($$.before_update);
89+
if (!is_previous_dirty) run_all($$.before_update);
9090
const dirty = $$.dirty;
9191
$$.dirty = [-1];
9292
$$.fragment && $$.fragment.p($$.ctx, dirty);
93-
// if (!is_dirty_from_binding) run_all($$.after_update);
93+
// if (!is_previous_dirty) run_all($$.after_update);
9494
$$.after_update.forEach(add_render_callback);
9595
}
9696
}

0 commit comments

Comments
 (0)