For methods, if a method name exists on parent, and also exists on
child, the extend method is adding a closure, which will preserve, and
then invoke the parent's method in _super() (line 75 in adobe.js).
As you probably know better than me, the author of [1] is a pretty
well-known JS guru.  I haven't looked at his other work like Jquery to see
if he uses this pattern there or has since become a convert to some other
pattern.  But for now I have to assume there was some important reason for
every line of the code.  Was it just to get instanceof to work?

I don't really care what the output code looks like, but I do know I don't
have the ability to quickly change the output code so I am working on other
aspects and hoping some other volunteer will do that if so motivated.



I am not a js guru either BUT if I were told what things needed to look like I am sure I could make the compiler spit out something that you wanted by changing the String emitter values.

Mike




--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui



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

Reply via email to