Created
January 23, 2012 07:14
-
-
Save FiNGAHOLiC/1661348 to your computer and use it in GitHub Desktop.
JS Coding Style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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