Created
June 20, 2012 17:09
-
-
Save ismyrnow/2960982 to your computer and use it in GitHub Desktop.
Javascript Namespacing
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
var DED = (function() { | |
var private_var; | |
function private_method() | |
{ | |
// do stuff here | |
} | |
return { | |
method_1 : function() | |
{ | |
// do stuff here | |
}, | |
method_2 : function() | |
{ | |
// do stuff here | |
} | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment