sebpiq/backbone.statemachine — pull request #26 by Fab1en (2013-08-14 00:55:31+00:00)
Title: [fix] Allow anonymous functions in states declaration hash

Sometimes, when the callbacks are short, it's easier to use
anonymous functions :

states: {
visible: {
enter: [function() { this.el.show(); }],
leave: [function() { this.el.hide(); }]
}
}

This is a proposed fix for issue #25