incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Schmalle <apa...@teotigraphix.com>
Subject Re: [ASJS] Adjusting FalconJS output (no general discussion in this thread, please)
Date Fri, 07 Dec 2012 19:45:33 GMT

Quoting Erik de Bruin <erik@ixsoftware.nl>:

> In GC, in combination with the way we set up inheritance, 'super()' is
> 'goog.base()': [1]
>
> If called from the constructor - as we already implemented - 'this' is
> the only argument.
>
> If calling a super method, use 'goog.base(this, "methodName", args)'
>
> EdB
>
> 1: http://closure-library.googlecode.com/svn/docs/closure_goog_base.js.html

Ok that makes sense, I'm guessing that if a class extends Object,  
nothing is present correct?

What about a subclass that does not call super, does goog.base() still  
need to be there?

Mike

>
> On Fri, Dec 7, 2012 at 8:26 PM, Michael Schmalle
> <apache@teotigraphix.com> wrote:
>> After doing some more research, the super() implementation in general is a
>> rats nest that needs to be figured out.
>>
>> Can someone give me the rules as to how super works with GC? If it's not
>> present etc, is super.myMethod() allowed?
>>
>> Mike
>>


-- 
Michael Schmalle - Teoti Graphix, LLC
http://www.teotigraphix.com
http://blog.teotigraphix.com


Mime
View raw message