Created
November 16, 2011 00:54
-
-
Save NV/1368928 to your computer and use it in GitHub Desktop.
There is absolutely no way to make a callWithOriginalContext function, right?
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
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