jakesgordon/javascript-state-machine — pull request #53 by jesstelford (2013-08-30 23:32:47+00:00)
Title: Persist event map on target object

This allows doing things like the following:

```javascript
var foo = {}
StateMachine.create({target: foo.prototype, events: [{name: 'startup', from: 'initial', to: 'newstate'}]});
StateMachine.create({target: foo.prototype, events: [{name: 'doSomething', from: 'newstate', to: 'somethingstate'}]});
foo.startup();
foo.doSomething();
```