etgryphon/stativus — Issue #28: Node.js compatability
Author: johnnywengluu
Created: 2011-11-20 15:43:56+00:00
State: open

I downloaded Stativus and did:

require("./stativus");
var statechart = Statechart.create();
statechart.addState("Test")
statechart.initStates("Test")

It seems to work except that the console displayed:

ENTER: undefined

I guess it's just something small going on making it behave like this. Could this be fixed so it's Node.js compatible? Would be good to be able to use it both on backend and frontend. Also for testing purpose it would be faster to run it on server side.