Few days ago I was prototyping some jQuery for a website and I decided to make a plugin out of it. To add some more fun to the experience, I wanted to do it with the newly discovered CoffeeScript.

A quick search shows how to implement a basic jQuery plugin in coffeescript. What I wanted though, was more like a reusable pattern like the one described as “perfect jQuery plugin” by Jupiter24. (more…)