Function.prototype.bind

Garrett Smith dhtmlkitchen at gmail.com
Wed Sep 10 00:27:19 PDT 2008


On Wed, Sep 10, 2008 at 12:22 AM, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> On Tue, Sep 9, 2008 at 11:51 PM, Mark S. Miller <erights at google.com> wrote:
>> On Tue, Sep 9, 2008 at 11:29 PM, Brendan Eich <brendan at mozilla.org> wrote:
>>> On Sep 9, 2008, at 11:09 PM, Mark S. Miller wrote:
>>>
>>>> On Tue, Sep 9, 2008 at 9:51 PM, Brendan Eich <brendan at mozilla.org> wrote:


> (callCall = Function.callCall = function(callable, context) {
>  return fun.apply(context, [].slice.call(arguments,2));
> });
>

Sorry, that should be:

Function.callCall = function(callable, context) {
  return callable.apply(context, [].slice.call(arguments,2));
};

Garrett

> Garrett
>
>>
>> --
>>    Cheers,
>>    --MarkM
>


More information about the Es-discuss mailing list