Created
January 9, 2013 22:13
-
-
Save simshanith/4497475 to your computer and use it in GitHub Desktop.
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
// example anonymous function | |
var doop = (function(){var thisFunc = arguments.callee; thisFunc.foo = 'bar'; return arguments.callee.foo;}); | |
// returns null | |
doop.foo; | |
// ...until it's called once. both return "bar". | |
doop(); | |
doop.foo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment