On 28 sep, 09:51, Yanick <[EMAIL PROTECTED]> wrote: > > I tried some twists and try to call the parent method foo, but I > failed to see how this can be accomplished with $super and the actual > implementation. In the other hand, consider this blog post > :http://www.severnsolutions.co.uk/twblog/archive/2004/10/08/supersimul... >
Oops. Sorry, I didn't read correctly (doing too many things at once probably...) the method foo: function($super) { return $super() * 2; } returns the expected answer. To quote Ryan : "ok, then it does work, my apologies :)" hehehe I will bow down for this implementation as it seems to work, but I still think that Ryan's code is prettier :) as it supports multi- inheritance (not that I need it, but it just seems more flexible) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---