kyleconroy/lua-state-machine — pull request #4 by superquadratic (2013-06-06 11:34:20+00:00)
Title: Support onenterstate and onafterevent handlers

Before, only the onstate and onevent event handler callbacks were supported. Now onenterstate and onafterevent can be used, too. They take precedence over the shorthand versions if both are present (like in [jakesgordon/javascript-state-machine](https://github.com/jakesgordon/javascript-state-machine)).

As before, onleavestate and onbeforeevent can be used to cancel an event when it occurs.