New Feature to JS 1.7
Eugen.Konkov at aldec.com
Eugen.Konkov at aldec.com
Wed Oct 3 02:34:04 PDT 2007
> It's nasty, but works if f1 is from prototype of A but not from the
> constructor of A.
Even more it is hardcoded, so if you change name 'A' to 'A1' you must change
everywhere in your code.
OpenLaszlo ](http://pt.withy.org/ptalk/archives/2006/05/circles_and_arrows.html)
implementation of a class system is the best I have seen ever
----- Original Message -----
From: "Shijun He" <hax.sfo at gmail.com>
To: <Eugen.Konkov at aldec.com>
Cc: <Es4-discuss at mozilla.org>
Sent: Wednesday, October 03, 2007 11:57 AM
Subject: Re: New Feature to JS 1.7
> 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