Function.prototype.bindFunc = function (b) { if (typeof (b) != "object") { return false } var a = this; return function () { return a.apply(b, arguments) } };