Created
June 20, 2012 22:57
-
-
Save darren131/2962766 to your computer and use it in GitHub Desktop.
JavaScript: Closure
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
(function( $ ){ | |
// set up global variables | |
var ObjectName; | |
// Navigation object | |
ObjectName = { | |
method: function() { | |
}, | |
init: function() { | |
} | |
}; | |
ObjectName.init(); | |
})( jQuery ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment