Skip to content

Commit

Permalink
Fixed reactivity dependency bug that included evaluates in branch dep…
Browse files Browse the repository at this point in the history
…endencies.
  • Loading branch information
amyjko committed Jul 11, 2024
1 parent 14cec6e commit 04b07f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Dates are in `YYYY-MM-DD` format and versions are in [semantic versioning](http:

- [#514](https://github.com/wordplaydev/wordplay/issues/514) Fixed cursor position on hidden language tags.
- Fixed parsing bug that prevented complete parsing of the program.
- Fixed reactivity dependency bug that included evaluates in branch dependencies.

## 0.10.4 2024-07-08

Expand Down
4 changes: 0 additions & 4 deletions src/nodes/Evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,6 @@ export default class Evaluate extends Expression {
return false;
}

hasBranch(expr: Expression) {
return this.fun === expr || this.inputs.includes(expr);
}

compile(evaluator: Evaluator, context: Context): Step[] {
// To compile an evaluate, we need to compile all of the given and default values in
// order of the function's declaration. This requires getting the function/structure definition
Expand Down

0 comments on commit 04b07f4

Please sign in to comment.