etgryphon/stativus — Issue #24: Substates are unrecognized
Author: johnnywengluu
Created: 2011-11-16 14:47:33+00:00
State: open

Found another minor bug:

This one works normally: http://jsfiddle.net/johnnywengluu/XKRqj/2/
This one doesn't since there is no hash in the array: http://jsfiddle.net/johnnywengluu/XKRqj/4/
This one works since there is a hash in the array: http://jsfiddle.net/johnnywengluu/XKRqj/5/

Another example but using initialSubstate: http://jsfiddle.net/johnnywengluu/XKRqj/6/

Reasons for fix:

- The first example worked without a hash.
- The last example gives "undefined" in the console.
- Sometimes you want an empty state (eg. "HIDDEN" that is just a way to exit "SHOWN").