FrozenCanuck / Ki

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

Pass arguments to states? #10

Closed ghost closed 13 years ago

ghost commented 13 years ago

According to the API I can send arguments to an event:

mainStatechart.sendEvent("showView", sender, context)

But is it possible to send arguments to a state?

this.gotoState("SHOWING_VIEW", fromCurrentState, useHistory)

/Johnny

FrozenCanuck commented 13 years ago

On the current master branch, not at the moment. However, I have an experimental branch where you can pass a context argument to the gotoState function. Over the next week or two I plan on bringing this functionality over to the master branch.