Created
June 17, 2011 18:28
-
-
Save stanwilsonjr/1031978 to your computer and use it in GitHub Desktop.
Name spacing Pattern
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 objectName = (function(o,$){ | |
var privateVar = "value", | |
privateObject = { key: "value" }; | |
o.methodOne = function(){ | |
... | |
}; | |
o.methodTwo = function(){ | |
... | |
}; | |
return o; | |
})(objectName || {},jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment