Function.prototype.bind may work 2 times faster, if when calling bind
with one argument,it would return function without "arg.concat"

  bind: function() {
    if (arguments.length < 2 && Object.isUndefined(arguments[0]))
return this;
    var __method = this, args = $A(arguments), object = args.shift();
      return function() {
        return __method.apply(object, concat($A(arguments)));
    return function(){
      return __method.apply(object, $A(arguments));

P.S.  bind function used with one argument very frequently

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to