Skip to content

Instantly share code, notes, and snippets.

@BiggerNoise
Created September 1, 2012 21:48
Show Gist options
  • Save BiggerNoise/3588495 to your computer and use it in GitHub Desktop.
Save BiggerNoise/3588495 to your computer and use it in GitHub Desktop.
Basic Revealing Module
mything = (function(){
var Foo, Bar, binky, boo;
binky = function() {
// does something useful
};
boo = function() {
// does something amazing
};
Foo = function() {
// uses binky and boo
};
Bar = function() {
//uses binky and boo
};
return {
Revealed: Foo,
Exposed: Bar,
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment