Skip to content

Commit dc0f409

Browse files
committed
refactor: rename CanPropagate flag to Recursed in SubscriberFlags
1 parent 78aa79f commit dc0f409

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/system.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface Link {
3535
export const enum SubscriberFlags {
3636
None = 0,
3737
Tracking = 1 << 0,
38-
CanPropagate = 1 << 1,
38+
Recursed = 1 << 1,
3939
RunInnerEffects = 1 << 2,
4040
ToCheckDirty = 1 << 3,
4141
Dirty = 1 << 4,
@@ -141,8 +141,8 @@ export function propagate(subs: Link): void {
141141
&& (sub.flags = subFlags | targetFlag, true)
142142
)
143143
|| (
144-
subFlags & SubscriberFlags.CanPropagate
145-
&& (sub.flags = (subFlags & ~SubscriberFlags.CanPropagate) | targetFlag, true)
144+
subFlags & SubscriberFlags.Recursed
145+
&& (sub.flags = (subFlags & ~SubscriberFlags.Recursed) | targetFlag, true)
146146
)
147147
) {
148148
const subSubs = (sub as Dependency).subs;
@@ -173,7 +173,7 @@ export function propagate(subs: Link): void {
173173
}
174174
} else if (isValidLink(link, sub)) {
175175
if (!(subFlags >> 2)) {
176-
sub.flags = subFlags | targetFlag | SubscriberFlags.CanPropagate;
176+
sub.flags = subFlags | targetFlag | SubscriberFlags.Recursed;
177177
const subSubs = (sub as Dependency).subs;
178178
if (subSubs !== undefined) {
179179
if (subSubs.nextSub !== undefined) {

0 commit comments

Comments
 (0)