Skip to content

Instantly share code, notes, and snippets.

@simshanith
Created January 9, 2013 22:13
Show Gist options
  • Save simshanith/4497475 to your computer and use it in GitHub Desktop.
Save simshanith/4497475 to your computer and use it in GitHub Desktop.
// 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