Open avf opened 2 years ago
Sorry. Slow to getting to the documentation fixes. You are correct that it leaves selected
in the same state. I think your suggestion is a good one. I'll will work on getting this into the documentation and tutorial code.
First of all, thank you for creating Behavior Graph, and also this amazing documentation. This library looks so damn awesome. After playing around with Elm, FRP (Sodium), and many other such libraries, I stumbled upon this in a very recent HN thread, and I'm extremely excited to try this out!
I found a small bug in the finished Tutorial 3, (also in the JSFiddle) here's how to repro:
I think this can be fixed by modifying the behavior that
.supplies(this.selected)
, by addingthis.removeItem
to itsdemands
:And also changing this
else if
clause:to: