Created
January 9, 2012 09:07
-
-
Save rakeshpai/1582088 to your computer and use it in GitHub Desktop.
Better anonymous function compressed with Closure Compiler
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
// Note: Line breaks added for clarity | |
(function(a, b, c) { | |
/* | |
Your code here | |
Calls to window.whatever will become a.whatever | |
Similarly, document.whatever will be b.whatever, and c will be undefined | |
*/ | |
}(window, document)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a sample mixed with a check to make sure the page is ready: