Skip to content

Instantly share code, notes, and snippets.

@seafoox
Forked from StevenBlack/jquery.pluginOutline.js
Created August 30, 2013 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seafoox/6386643 to your computer and use it in GitHub Desktop.
Save seafoox/6386643 to your computer and use it in GitHub Desktop.
// Skeleton jQuery plugin
function($)
{
$.fn.myPlugin = function( options )
{
// options.
$.fn.myPlugin.settings = $.extend( {}, $.fn.myPlugin.defaults, options );
// Go through the matched elements and return the jQuery object.
return this.each( function() {
});
};
// Public defaults and settings.
$.fn.myPlugin.defaults = {
prop: 'some value'
};
$.fn.myPlugin.settings = { };
// Private functions.
function myFunc()
{
return;
};
// Public functions.
$.fn.myPlugin.func = function()
{
return;
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment