What .bind() does is pretty much the same:
function likeBind(fun, thisValue) { return function() { var args = [].slice.call(arguments, 0); return fun.apply(thisValue, args); }; }
So:
c = likeBind(c, a);
gives a related function. Now, even if you are trying to re-bind, the original bind function still exists in this closure with the value that you originally requested to use as this . The values ββof the variables inside the closures can only be changed from within the closure, so you canβt do anything without binding a related function like this. You should start with the original feature.
So no .
Pointy
source share