flosse/scaleApp — pull request #29 by strathausen (2012-09-27 15:28:45+00:00)
Title: Some minor changes to the state plugin

Hi, I hope you don't mind to have several stuff in one pull request. If you like, you can also pull or cherry pick stuff from my repo.

1. just some small things nice to have in the gitignore file, like the node_modules
2. I thought it made sense to have fire emit 'leaveChannel' only on the current state, since that is the state that you are actually leaving. What do you think?
3. 'can' should also allow transitions if the transition has multiple states in 'from' and the current state is in it.

I've added some tests, but all the previous tests also pass nicely.

Cheers,
Philipp