3 ms·
Not sure if you continued on reading to the part where I propose a bind function that doesn't break dynamic dispatch. var bind = function (obj, m) {
by amasad 14y ago
Not sure if you continued on reading to the part where I propose a bind function that doesn't break dynamic dispatch.
var bind = function (obj, m) {
return function () {
obj[m].apply(obj, Array.prototype.slice.call(arguments));
};
};