Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created March 18, 2010 10:17
Show Gist options
  • Select an option

  • Save tim-smart/336248 to your computer and use it in GitHub Desktop.

Select an option

Save tim-smart/336248 to your computer and use it in GitHub Desktop.
var namespace = (function() {
// Code that defines 'test' and 'foo'
return {
test: test,
foo: foo
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment