Created
May 7, 2010 22:40
-
-
Save skoon/394100 to your computer and use it in GitHub Desktop.
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
var f = function(args, body) { | |
return Function(args, body); | |
}; | |
var alertFoo = f("foo","alert(foo)"); | |
alertFoo("bar"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the f() function to create new anonymous functions does save you some characters, but minimizers won't work with the strings you have to pass in.