Function.prototype.bind

David-Sarah Hopwood david.hopwood at industrial-designers.co.uk
Wed Sep 10 18:24:26 PDT 2008


David-Sarah Hopwood wrote:
> Mark S. Miller wrote:
>> On Wed, Sep 10, 2008 at 12:49 AM, Brendan Eich <brendan at mozilla.org> wrote:
>>> I'm willing to rename Function.apply, but let's talk some more about the
>>> better name, and about why it matters.
> 
> Actually now that I think about it, there is an easy fix:
> 
>   Function.apply = <original Function.prototype.apply>;
> 
> Then use Function.apply.call(callable, thisobj, argsarray).

I should have said that this is assuming the adoption of my other proposal
in which static methods of Function (for example) are non-Writable and
non-Configurable.

-- 
David-Sarah Hopwood


More information about the Es-discuss mailing list