webtier@glassfish.java.net

Re: JSF 2.0: Errors or Ambiguity in Spec for "onevent" JavaScript Callback

From: <webtier_at_javadesktop.org>
Date: Wed, 30 Sep 2009 15:21:41 PDT

> While the spec leads do monitor these forums, the
> best way to report specification bugs is to log them
> as bugs in the specification bug database:

Roger; wilco. Will do.

> One comment on your comment though:
>
> var foo = function foo()
>
> is not quite the same as
>
> var foo = function()
>
> One will show up as function foo in debug stats. The
> other will not. It's good practice to always name
> your functions, even when assigning them to
> variables, for exactly this reason.

I don't understand why you don't do function foo(...) { ... } instead of [b]either[/b] of those two forms. Isn't that the same as the first form above? Can you elaborate, please?

Cheers-

- Marty
http://www.coreservlets.com
[Message sent by forum member 'martyhall' (hall_at_coreservlets.com)]

http://forums.java.net/jive/thread.jspa?messageID=366393