FrozenCanuck / Ki

A Statechart Framework for SproutCore
http://frozencanuck.wordpress.com
Other
105 stars 7 forks source link

initialSubstate: should not be required #11

Closed erichocean closed 13 years ago

erichocean commented 13 years ago

The specification does not require an initial substate (you can been in a parent state without being in any substate) and a number of widely used statechart patterns require this behavior.

Ki should allow a state with substates to not define initialSubstate. Currently, it throws an error.

FrozenCanuck commented 13 years ago

Can you provide examples of where you do not need to define an initial substate?

erichocean commented 13 years ago

Nevermind, I'm making so many changes to Ki/SC.Statechart at this point, I'll just do it myself.