As mentioned, Function.bind()
lets you specify the context that the function will execute in (that is, it lets you pass in what object the this
keyword will resolve to in the body of the function.
A couple of analogous toolkit API methods that perform a similar service:
jQuery.proxy()
Dojo.hitch()