News for hackers. Stuff that matters.
Re:My Favorite jQuery Plugin Template by rdebeasi on Friday December 27, 2013 @01:55PM (#6972020)
Cool stuff! This reminds me a lot of jQuery Boilerplate: https://github.com/jquery-boilerplate/jquery-boilerplate/blo...

Personally, I find the "that" variable to be a little confusing. A developer looking at the code might wonder whether "that" is the plugin, a DOM element, or something else. To make the code a little clearer, you could use something like "elem" to represent the element on which the plugin has been called, and "plugin" to represent the plugin itself.

Happy coding!

Re:My Favorite jQuery Plugin Template by kolodny on Friday December 27, 2013 @02:01PM (#6972051)
That's a good point. I've updated the post to use `elem` and `$elem`

Thanks