jQuery Plugin Boilerplate

Robert Andresen Programming, Tutorials Leave a Comment

Just to make it easier for me to find, I’m posting a Jquery boilerplate from Stefan Gabos.

Source: http://stefangabos.ro/jquery/jquery-plugin-boilerplate-oop/

Edit: I also found one on Github, which seems to be more maintained: https://github.com/jquery-boilerplate/jquery-boilerplate/blob/master/src/jquery.boilerplate.js

 

With comments

 

Without comments

 

Usage