Javascript State Machine v2.0.0 Release Notes

Release Date: 2011-08-19 // over 12 years ago
    • adding support for asynchronous state transitions (see README) - with lots of qunit tests (see test/async.js).
    • consistent arguments for ALL callbacks, first 3 args are ALWAYS event name, from state and to state, followed by whatever arguments the user passed to the original event method.
    • added a generic onchangestate(event,from,to) callback to detect all state changes with a single function.
    • allow callbacks to be declared at creation time (instead of having to attach them afterwards)
    • renamed 'hooks' => 'callbacks'
    • read more...