ifandelse / machina.js

js ex machina - finite state machines in JavaScript
http://machina-js.org/
Other
1.93k stars 147 forks source link

Allow for forgetting `new` keyword on machine creation #108

Closed floatingLomas closed 8 years ago

floatingLomas commented 9 years ago

...Because I'm terrible at remembering this, and the error I received was ... unclear. It was either this or throwing a more accurate error, I guess.

Not sure why the built output changed so much, but it's really only the one change in BehavioralFsm.js.