On Sep 19, 2005, at 2:19 AM, Andreas Wahlin wrote:
On Sep 19, 2005, at 1:23 , Gavin Kistner wrote:
FWIW, the second is not valid JS. The first is valid, as is: var functionName = function( ... ){ ... }, but 'var' must not be followed by a dereferenced object.
Hupps, you're absolutely right, can't believe I wrote that, I blame my not having any private functions in the object I was looking at :) It's supposed to be
var functionName = function(arguments) { ... } right?
Yup, that would create a local variable pointing to the functionName object. (The exact same functionality as using simply: function functionName(arguments){ ... }