Skip to content

Instantly share code, notes, and snippets.

@frankgeerlings
Forked from sdvg/gist:2345533
Last active December 31, 2015 17:59
Show Gist options
  • Save frankgeerlings/8023459 to your computer and use it in GitHub Desktop.
Save frankgeerlings/8023459 to your computer and use it in GitHub Desktop.
Skeleton of a basic jQuery extension.
/*!
* What the extension does and who made it.
*
* Copyright 1970, Who Made It
* How it's licensed
*/
(function($){
$.fn.extend({
extensionName: function(options) {
//Settings list and the default values
var defaults = {
};
options = $.extend(defaults, options);
//code
}
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment