Skip to content

Instantly share code, notes, and snippets.

@denis
Created September 24, 2008 20:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denis/12656 to your computer and use it in GitHub Desktop.
Save denis/12656 to your computer and use it in GitHub Desktop.
A simple jQuery plugin skeleton
(function ($) {
$.fn.pluginName = function (settings) {
settings = $.extend({
param: 'value'
}, settings);
return this.each(
function () {
var $this = $(this);
// plugin code here
}
);
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment