Skip to content

Instantly share code, notes, and snippets.

@NV
Created November 16, 2011 00:54
Show Gist options
  • Save NV/1368928 to your computer and use it in GitHub Desktop.
Save NV/1368928 to your computer and use it in GitHub Desktop.
There is absolutely no way to make a callWithOriginalContext function, right?
var obj = {
getX: function() {
return this.x
},
x: 1
}
callWithOriginalContext(obj.getX) // 1
//There is absolutely no way to make a callWithOriginalContext function, right?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment