Skip to content

Instantly share code, notes, and snippets.

@specialunderwear
Created January 30, 2012 00:01
Show Gist options
  • Save specialunderwear/1701459 to your computer and use it in GitHub Desktop.
Save specialunderwear/1701459 to your computer and use it in GitHub Desktop.
new scope
> var one = 1;
> var change_this_one = function(baseline) {
> this.one = baseline;
> }
> one;
1
> var base = new change_this_one(10);
> one;
1
> base.one;
10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment