Created
April 8, 2013 20:49
-
-
Save gsnedders/5340362 to your computer and use it in GitHub Desktop.
[[Call]], in JS
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 call = (function() { | |
var apply = Function.prototype.call.bind(Function.prototype.apply); | |
apply.call = Function.prototype.call; | |
return function(func, thisArg, args) { | |
return apply.call(func, thisArg, args); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't quite understand your code. Isn't
what you want?