There are other popular scripts that rely on this behavior, most notably Dean Edwards's original base.js inheritance script.
It should also be noted that this behavior does not comply with ECMA-262, which states that Function.prototype.toString shall return a string that has the syntax of a function declaration. I'm sure it was necessary to get a JS environment running on mobile devices, but the point remains. Prototype supports the major desktop browsers, but I don't think we have any _official_ level of support for browsers on mobile devices. Cheers, Andrew On Nov 11, 3:57 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> wrote: > On Nov 11, 2007 10:16 PM, Artemy Tregoubenko <[EMAIL PROTECTED]> wrote: > > > > > some time ago one of Opera developers warned in his blog > > ( > >http://my.opera.com/hallvors/blog/2007/03/28/a-problem-with-john-resi... > > ) > > against relying on function serialization. He said that mobile devices are > > limited in resources and thus may lack this functionality. > > Hi Artemy, > > Yeah, the $super argument is a hack. Class instances will misbehave if the > JavaScript interpreter is unable to serialize functions. But this issue > aside, can we expect the rest of the framework to work if the JS interpreter > is limited? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---