Actions should be implemented as state methods.
Actions should be implemented as state methods.

Say, if you have a stateA with a substate stateB,
and stateB's entry action is set to 'doSomething'.
You could implement the action this way:

sc_require('states/statechart');
MyApp.statechart.rootState.prototype.stateA.prototype.stateB.prototype.mixin({
  doSomething: function() {
    alert('Hello!');
  }
});
noklesta/vp_to_ki