Skip to content

Instantly share code, notes, and snippets.

@jakemcgraw
Created September 1, 2010 16:43
Show Gist options
  • Save jakemcgraw/560979 to your computer and use it in GitHub Desktop.
Save jakemcgraw/560979 to your computer and use it in GitHub Desktop.
// In global scope
ANDREW = $.extend(window.ANDREW||{}, {
someVar : 1,
someOtherVar : false,
someFunc : function(params) {},
someOtherFunc : function(params) {},
});
// ... Later
ANDREW.someFunc("foobar");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment