Closed alexpeachey closed 10 years ago
:thumbsup:
Of course, now I really want to move forward with a follow-on extraction of events into their own thing. Aside from capturing the starting and ending states, nearly all of the StateMachine class is dedicated to managing event info and the process of transitioning them. They're practically screaming at me to be extracted. :wink:
I agree on the naming. I've changed it so both cases throw InvalidTransition
.
Oh but I didn't update the Readme...bugger. Updating in a moment. :smile:
Addresses concerns raised in #13.
This is breaking change to the API!
@brianvh @charlierudolph please review when you get a chance.