Mislav, The debate is not quite resolved for me. How do I use $super in case of multiple inheritance?
Let's say Cat inherits from Animal and Pet. How do I call Pet constructor in Cat? Les On Sep 20, 11:39 am, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On 9/20/07, Les Szklanny <[EMAIL PROTECTED]> wrote: > > > > > But, shouldn't have to do this or use $super(name). The superclass > > constructor should be called automatically (as in Dojo for example). > > We have modeled OOP support in Prototype based on the most traditional > inheritance model. Most of the users don't expect overridden constructors to > be called automatically. If you want to call the superclass constructor, you > must use $super (please don't do Foo.prototype.bar.apply anymore) - that > also works with any other method in your classes. > > So, thanks for the suggestion, but we're keeping constructors this way. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
