> 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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, October 03, 2007 11:57 AM
Subject: Re: New Feature to JS 1.7


> On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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).

_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to