fix-memory-leak-
Dominic Gannaway 1 year ago
parent 4167765a9d
commit db3bdbf9fc

@ -248,12 +248,10 @@ export function check_dirtiness(reaction) {
is_dirty = true; is_dirty = true;
} }
reactions = dependency.reactions; reactions = dependency.reactions;
if (reactions === null || !reactions.includes(reaction)) { if (reactions === null) {
if (reactions === null) { dependency.reactions = [reaction];
dependency.reactions = [reaction]; } else if (!reactions.includes(reaction)) {
} else { reactions.push(reaction);
reactions.push(reaction);
}
} }
} }
} }

Loading…
Cancel
Save