Javascript State Machine v2.1.0 Release Notes
Release Date: 2012-01-07 // over 12 years ago-
- Wrapped in self executing function to be more easily used with loaders like
require.js
orcurl.js
(issue #15) - Allow event to be cancelled by returning
false
fromonleavestate
handler (issue #13) - WARNING: this breaks backward compatibility for async transitions (you now need to returnStateMachine.ASYNC
instead offalse
) - Added explicit return values for event methods (issue #12)
- Added support for wildcard events that can be fired 'from' any state (issue #11)
- Added support for no-op events that transition 'to' the same state (issue #5)
- extended custom error callback to handle any exceptions caused by caller provided callbacks
- added custom error callback to override exception when an illegal state transition is attempted (thanks to cboone)
- fixed typos (thanks to cboone)
- fixed issue #4 - ensure before/after event hooks are called even if the event doesn't result in a state change
- Wrapped in self executing function to be more easily used with loaders like