开发者

Statechart for javascript like Sproutcore's statechart?

In Sproutcore there is a statechart framework I can use for giving the application states which holds act开发者_如何学Pythonions 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.


You were about ten days early asking the question. Michael Cohen found this: https://github.com/jakesgordon/javascript-state-machine/ which appears to have surfaced June 1.


There is a framework called Stativus:

https://github.com/etgryphon/stativus

It is essentially the factored out version of Sproutcore state chart framework. I'm using it on the project and quite happy with it.

Documentation is unfortunately too simplistic, however library is quite small and easy to use. I'm working on the blog post about it right now, it will be posted in my blog http://zubairov.posterous.com soon.


I wrote this, which should also do the job: https://github.com/jbeard4/SCION


FSM !== Statecharts. I wrote an answer about comparison of FSM and Statecharts here


As I posted in another question, there is also statechart by David Durman. And, a new one: xstate, https://github.com/davidkpiano/xstate

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜