Skip to content

Instantly share code, notes, and snippets.

@wrongkitchen
Created November 7, 2012 08:00
Show Gist options
  • Save wrongkitchen/4030111 to your computer and use it in GitHub Desktop.
Save wrongkitchen/4030111 to your computer and use it in GitHub Desktop.
Javascript: Class Template
var PluginName;
(function($){
PluginName = function(options) {
this.defaults = {
};
this.options = $.extend(this.defaults, options);
};
PluginName.fn = PluginName.prototype;
PluginName.fn.init = function(){
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment