sebpiq/backbone.statemachine

The examples are broken

Closed this issue · 7 comments

Hi i am very interested in your state machine.
I want to use it with a "view manager".
Unfortunatly i can't make the basic examples work...

doShow: function() { this.el.show(); } and doHide: function() { this.el.hide(); } are not called

http://lbineau.com/tests/statemachine/examples/example0.html
http://lbineau.com/tests/statemachine/examples/example1.html

Any idea ?

It is very possible ... I changed the API a bunch of times, without updating the examples. I'll fix this shortly !

fixed 9619b17

Finally I managed to merge your library with Backbone Boilerplate -> https://github.com/lbineau/backbone-boilerplate
And a little example here -> http://lbineau.com/projects/backbone-boilerplate_statemachine/

Cool ! Did you have to change anything from the source, or did ti just work out of the box ? What was hard to understand ?

I have tried it 3 months ago and I got weird errors when I attemp to get LayoutManager and StateMachine work together.
But with the new versions of BBBP and StateMachine it works like a charm out of box !

I think with CSS3 or TweenMax library it will be very easy to do some nice transitions.

Great ! If you write a demo that you think could be useful for other people as well, I am interested :)