Skip to content

Instantly share code, notes, and snippets.

@tatey
Created February 3, 2010 12:37
Show Gist options
  • Save tatey/293570 to your computer and use it in GitHub Desktop.
Save tatey/293570 to your computer and use it in GitHub Desktop.
// Option 1
$.a = {
settings: {},
method1: function() {},
method2: function() {}
};
// Option 2
$.a = function() {};
$.extend($.a, {
settings: {},
method1: function() {},
method2: function() {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment