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-resigs-addevent
)
against relying on function serialization. He said that mobile devices are
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
probably yes
if disabled toString() is the only limitation
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
I see. Actually I haven't studied js spec, but if it says so then I
agree on using Function.toString is absolutely fair.
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