Blog (javascript)

@fredwu 11 years ago | 2 min read | no comments
After a few nights of working on the 2.0 rewrite of jQuery Endless Scroll, I am now releasing one of the tools I built for the project: Skinny Coffee Machine. Skinny Coffee Machine is a simple JavaScript state machine written in CoffeeScript. It is fairly simple to use, with the flexibility of adding and removing observers for state transitions. Define State Machines @coffeeMachine.power = new SkinnyCoffeeMachine default: 'off' events: turnOn: off: 'on' ...