Closed igncp closed 9 years ago
@igncp I apologize that I've left this PR sitting for so long! I was in the middle of some other changes at the time (if I recall correctly) and had already diverged a bit. However I did incorporate your suggestions and am going to add you to the contributors list in the package.json with the next version bump. Really appreciate you taking time to contribute!
Hi there,
I was reviewing the code of this great project (examples, src, tests) and saw some possible minor changes. The most important was to add var to a non defined variable (action), as when running
fsm1.handle()
, it was added to the global scope (e.g.window
). I also removed some variables that were not used anymore.Furthermore, renamed the
fsm.js
file toFsm.js
as it was failing when doingnpm run build
, it was that or changing the//import
line (but I saw this was also done in a pending PR).