On Sep 18, 2005, at 12:01 PM, Andreas Wahlin wrote:
By parens I take it you mean paranthesis? My bad, they aren't supposed to be there, I used them to emphasise that you can skip the var part and thus have either this.functionName = function(arguments) { ... } or var this.functionName = function(arguments) { ... }
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.