jakesgordon/javascript-state-machine — Issue #12: Success or failure of an event
Author: oxplot
Created: 2011-12-29 23:16:49+00:00
State: open

It's helpful if the event methods return true or false based on whether the event was successful or was cancelled.
In my use case, I want to keep statistics on event firings. This could also be used for situations where an event can unpredictably fail and multiple retires is necessary until it succeeds.