-
-
Save abloom/5398064 to your computer and use it in GitHub Desktop.
This file contains 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
function createMy() { | |
var my = {}, | |
privateVariable = 1; | |
function privateMethod() { | |
// ... | |
} | |
my.moduleProperty = 1; | |
my.moduleMethod = function () { | |
// ... | |
}; | |
return my; | |
} | |
var MODULE = createMy(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment