Created
January 9, 2012 09:02
-
-
Save rakeshpai/1582067 to your computer and use it in GitHub Desktop.
A better self-executing anonymous function
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(window, document, undefined) { | |
/* | |
Your code here | |
You can reference window, document and undefined as you normally do | |
*/ | |
}(window, document)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment