Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created July 24, 2010 16:10
Show Gist options
  • Select an option

  • Save cowboy/488784 to your computer and use it in GitHub Desktop.

Select an option

Save cowboy/488784 to your computer and use it in GitHub Desktop.
// plugin "foo plus stuff" contains standalone plugin "foo"
// additional code
(function($){
$.foo = {};
$.foo.bar = prop;
})(jQuery);
// standalone plugin "foo"
(function($){
function foo(){
// code
};
$.foo = $.extend( foo, $.foo );
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment