New Feature to JS 1.7

Shijun He hax.sfo at gmail.com
Wed Oct 3 01:57:39 PDT 2007


On 9/25/07, Eugen.Konkov at aldec.com <Eugen.Konkov at aldec.com> wrote:
>
> B.prototype.f1= function(){ /*How call f1 from prototype A?*/}

B.prototype.f1= function(){A.prototype.f1.call(this)}

It's nasty, but works if f1 is from prototype of A but not from the
constructor of A.

Maybe every Ajax framework provide their own super call based on this
trick, but some are buggy, such as DC's uber (see
http://johnhax.blogspot.com/2006/12/bug-of-douglas-crockfords-uber.html).



More information about the Es4-discuss mailing list