Hi,
What version are you using? In 1.6.0.3 (the latest non-beta copy),
stopObserving is lines 4022-4051, and there is no non-exception code
path that doesn't return a value.
Again, using Prototype, I don't see these errors from the Firefox
error console. Do you have some kind of lint plugin? I don't get
that warning if I try intentionally to create it, e.g.:
function sometimes(arg) {
if (arg > 4) {
return arg + 4;
}
}
(I should note that even though it's poor style, the above is
perfectly valid JavaScript. In the case of the above, if you call
sometimes(1), the value you'll get back is undefined (literally, the
undefined object), which is as per the spec. But I wouldn't be
surprised if a lint plug-in flagged that up as probably not being what
you meant to do.)
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Apr 15, 10:51 am, mareb <[email protected]> wrote:
> Hi,
> I did grab the wrong line from error console. This line comes from
> google code. A real line from prototype.js is:
>
> "function stopObserving does not always return a value" (line 4593)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---