In Sproutcore there is a statechart framework I can use for giving the application states which holds actions for what you can do in different states.
I wonder if there is a similar standalone statechart framework I can use outside Sproutcore eg. in conjunction with YUI3.