We need to check this to be sure, but I believe onsubmit, like all the other
DOM events, just uses the return value as another way of calling
preventDefault(). So it's not strictly necessary, unless I'm missing
something.

On Mon, Oct 12, 2009 at 4:54 PM, BobV <[email protected]> wrote:

>
> > Shouldn't this be a void method anyway?  (and so on up the stack)
>
> If it's non-void, it can be used with something like an onsubmit
> handler where the return value alters the behavior of the browser.
> Otherwise you'll need some indirect way of communicating the desired
> return value to the callback function.
>
> We could have a non-void variant that doesn't trap exceptions, or add
> an optional flag to $entry() that disables the exception trap and
> allows return values.  Neither of those are really appealing to me and
> I'll make the argument that your program is already in trouble, but
> you know about it because you have a UCE installed.
>
> --
> Bob Vawter
> Google Web Toolkit Team
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to