Here you can find the source of bind(a)
Function.prototype.bind = function (a) { if (arguments.length < 2 && typeof arguments[0] === 'undefined') return this; var b = this,//w ww . j av a2 s . c om c = Array.prototype.slice.call(arguments).slice(1); return function () { var d = c.concat(Array.prototype.slice.call(arguments)); return b.apply(a, d) } };
Function.prototype.bind = function(){ var fn = this, args = Array.prototype.slice.call(arguments), object = args.shift(); return function() { return fn.apply(object, args.concat(Array.prototype.slice.call(arguments))); }; };
Function.prototype.bind = function(bind,args){ var self = this; var options = args; return function(){ var args = (options != undefined) ? options.extend(arguments) : arguments; return (function(){ return self.apply(bind || null, args); })(); };
Function.prototype.bind = function(obj) { var f = this; return function () { return f.apply(obj, arguments); }; };
Function.prototype.bind = function (bind) { var self = this; return function () { var args = Array.prototype.slice.call(arguments); return self.apply(bind || null, args); }; };
Function.prototype.bindArg = function () { var args = arguments, that = this; return function () { that.apply(this, args); }; };
Function.prototype.bind = function(scope) { var _function = this; return function() { return _function.apply(scope, arguments); }; String.prototype.trim = function () { return this.replace(/^\s*/, '').replace(/\s*$/, ''); }; ...
Function.prototype.bind = function(scope) { var _function = this; return function() { return _function.apply(scope, arguments);
Function.prototype.bind = function bind(self) { var callable = this; return function binding() { return callable.apply(self, arguments.toArray()); };
Function.prototype.bind = Function.prototype.bind || function (oThis) { if( typeof this !== "function" ) { throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); var aArgs = Array.prototype.slice.call(arguments, 1), fToBind = this, fNOP = function () {}, fBound = function () { return fToBind.apply( ...