Skip to content

Instantly share code, notes, and snippets.

@BiggerNoise
Created September 2, 2012 04:00
Show Gist options
  • Save BiggerNoise/3594723 to your computer and use it in GitHub Desktop.
Save BiggerNoise/3594723 to your computer and use it in GitHub Desktop.
Namespace/Module Use 2
company.master.users = company.master.createModule( function(){
var RevealedClass, hiddenFunction
RevealedClass = function(){
// stuff
};
hiddenFunction = function(){};
// this is the private area of the module
this.privateThing = 42;
return {
Revealed:RevealedClass,
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment