Created
March 4, 2012 23:39
-
-
Save arches/1975423 to your computer and use it in GitHub Desktop.
Namespacing syntax
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 Foo; if (!Foo) Foo = {}; | |
// Then you can safely define things on Foobar: | |
Foo.Bar = function(){}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment