Created
November 16, 2011 16:51
-
-
Save andrewpthorp/1370624 to your computer and use it in GitHub Desktop.
JS Namespaces
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
// Is there a name for this pattern? I would love some resources to read about pros/cons using it. | |
var FOO = FOO || {}; | |
FOO.ui = {}; | |
FOO.ui.prep_links = function(){ | |
// Some Vars | |
var _init = function(){ | |
// Do Something | |
}(); | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment