Skip to content

Instantly share code, notes, and snippets.

@eliperelman
Created July 6, 2011 04:11
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 eliperelman/1066548 to your computer and use it in GitHub Desktop.
Save eliperelman/1066548 to your computer and use it in GitHub Desktop.
Revealing Module pattern
var App = (function() {
var module1 = {
method1: function() {
// code here
}
};
var module2 = {
ajax: $.ajax
};
return {
module1: module1,
module2: module2
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment