Skip to content

Instantly share code, notes, and snippets.

@FiNGAHOLiC
Created January 23, 2012 07:14
Show Gist options
  • Select an option

  • Save FiNGAHOLiC/1661348 to your computer and use it in GitHub Desktop.

Select an option

Save FiNGAHOLiC/1661348 to your computer and use it in GitHub Desktop.
JS Coding Style
// http://www.beams.co.jp/catalog/2011winter/
(function(){
var hoge = {
_privateVariables : 'private',
publicValiables : 'public',
_privateMethod : function(){
return _privateVariables;
},
publicMethod : function(){
return publicValiables;
}
};
if(!window.MyNameSpace) window.MyNameSpace = {};
window.MyNameSpace.hoge = hoge;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment