Skip to content

Instantly share code, notes, and snippets.

@cowboy
Forked from padolsey/gist:303362
Created February 13, 2010 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cowboy/303386 to your computer and use it in GitHub Desktop.
Save cowboy/303386 to your computer and use it in GitHub Desktop.
var a = 1;
(function(){
var a = 2;
(function(parent){
var global = this;
console.log( global.a ) // 1
}).call(this);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment