Skip to content

Commit 6e26478

Browse files
committed
simplify
1 parent 2e813f1 commit 6e26478

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -707,17 +707,10 @@ function flush_queued_root_effects() {
707707
var effects = [];
708708

709709
var root_effects = queued_root_effects;
710-
var length = root_effects.length;
711710

712711
queued_root_effects = [];
713712

714-
for (var i = 0; i < length; i++) {
715-
var root = root_effects[i];
716-
717-
if ((root.f & CLEAN) === 0) {
718-
root.f ^= CLEAN;
719-
}
720-
713+
for (const root of root_effects) {
721714
process_effects(root, async_effects, render_effects, effects);
722715
}
723716

@@ -835,6 +828,8 @@ export function schedule_effect(signal) {
835828
* @param {Effect[]} effects
836829
*/
837830
function process_effects(root, async_effects, render_effects, effects) {
831+
root.f ^= CLEAN;
832+
838833
var effect = root.first;
839834
var batch = /** @type {Batch} */ (current_batch);
840835

0 commit comments

Comments
 (0)