Skip to content

Instantly share code, notes, and snippets.

@EdCharbeneau
Last active December 25, 2015 04:39
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 EdCharbeneau/6919216 to your computer and use it in GitHub Desktop.
Save EdCharbeneau/6919216 to your computer and use it in GitHub Desktop.
Revealing module pattern stub
var module = function () {
//private
var someFunction = function(message){ ... },
privateFunction = function() { ... }
onInit = function(settings) { ... };
return {
//public
init: onInit
publicFunction: someFunction
}
} ();
//usage
$(document).ready(function () {
module.init();
module.publicFunction("Testing 123");
});
@EdCharbeneau
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment