nickfargo / state

Composable, heritable first-class states
statejs.org
Other
93 stars 8 forks source link

`State::substate` does not return a current virtual state #2

Closed nickfargo closed 12 years ago

nickfargo commented 12 years ago

If the current object.state() is virtual, then

object.state().match( object.state().toString() )

returns the real object.state().protostate(), whereas it should return the extant virtual state. The same should hold for any virtual superstates as well.

nickfargo commented 12 years ago

96555041854f5207b71ab2822ba92d27e95d60e2