|
|
@ -300,15 +300,15 @@ function mark_reactions(signal, status) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (status === DIRTY || (flags & DIRTY) === 0) {
|
|
|
|
set_signal_status(reaction, status);
|
|
|
|
// don't make a DIRTY signal MAYBE_DIRTY
|
|
|
|
|
|
|
|
set_signal_status(reaction, status);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((flags & DERIVED) !== 0) {
|
|
|
|
// If the signal a) was previously clean or b) is an unowned derived, then mark it
|
|
|
|
mark_reactions(/** @type {Derived} */ (reaction), MAYBE_DIRTY);
|
|
|
|
if ((flags & (CLEAN | UNOWNED)) !== 0) {
|
|
|
|
} else {
|
|
|
|
if ((flags & DERIVED) !== 0) {
|
|
|
|
schedule_effect(/** @type {Effect} */ (reaction));
|
|
|
|
mark_reactions(/** @type {Derived} */ (reaction), MAYBE_DIRTY);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
schedule_effect(/** @type {Effect} */ (reaction));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|