[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(); }]
    }
}