File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- Copyright (c) 2011 Jake Gordon and contributors
1+ Copyright (c) 2012 Jake Gordon and contributors
22
33Permission is hereby granted, free of charge, to any person obtaining a copy
44of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1- Javascript Finite State Machine (v2.0.1 )
1+ Javascript Finite State Machine (v2.1.0 )
22========================================
33
44This standalone javascript micro-framework provides a finite state machine for your pleasure.
@@ -80,8 +80,11 @@ This example will create an object with 2 event methods:
8080The ` rest ` event will always transition to the ` hungry ` state, while the ` eat ` event
8181will transition to a state that is dependent on the current state.
8282
83+ >> NOTE: The ` rest ` event could use a wildcard '* ' for the 'from' state if it should be
84+ allowed from any current state.
85+
8386>> NOTE: The ` rest ` event in the above example can also be specified as multiple events with
84- the same name if you prefer the verbose approach:
87+ the same name if you prefer the verbose approach.
8588
8689Callbacks
8790=========
Original file line number Diff line number Diff line change 1- Version 2.0.1 (unreleased )
2- --------------------------
1+ Version 2.1.0 (January 7th 2012 )
2+ --------------------------------
33
4+ * Added explicit return values for event methods (issue #12 )
5+ * Added support for wildcard events that can be fired 'from' any state (issue #11 )
6+ * Added support for no-op events that transition 'to' the same state (issue #5 )
47 * extended custom error callback to handle any exceptions caused by caller provided callbacks
58 * added custom error callback to override exception when an illegal state transition is attempted (thanks to cboone)
69 * fixed typos (thanks to cboone)
You can’t perform that action at this time.
0 commit comments