Skip to content

Instantly share code, notes, and snippets.

@kino90
Last active February 9, 2016 11:10
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 kino90/9883653d29cd7b0e160d to your computer and use it in GitHub Desktop.
Save kino90/9883653d29cd7b0e160d to your computer and use it in GitHub Desktop.
Basic js namespacing snippet
var Main = function(){
var vars = {
},
init = function(){
//init
};
return {
init: function(){ init(); }
}
}();
Main.init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment