Add 'canEnter' and 'canLeave' properties
mjstahl opened this issue · comments
Mark Stahl commented
These function shall be defined on a state, and will be called when entering or leaving that state.
The function shall take the Stated object as the only argument.
If either function returns false, they shall not perform the respective functions (not enter, not leave)