Is there a way to rebind a function that is already bound to another object via Function.prototype.bind?
var a={};
var b={};
var c=function(){ alert(this===a); };
c(); // alerts false
c=c.bind(a);
c(); // alerts true
c=c.bind(b);
c(); // still alerts true
I know that I can use a different approach and keep a "clean" function for binding, but I just wonder how to reuse an already bound function.