Michael Geary schrieb:
> So what was *really* missing here was a comma, not a semicolon - because the
> function definitions were all supposed to be part of that one "var"
> statement.
>
> Instead, the JavaScript interpeter sees that it can't parse the code as is,
> and it inserts a semicolon after "settings" - thus cutting off the function
> definitions from the "var" statement.
>
> The code still runs, but all those assignments have become globals instead
> of locals. Oops!
>
> I think I would change it to this:
> [...]
>
> Or maybe just:
>
> [...]
Thanks Mike! I'll modify the tooltip to prevent any further confusion. 
It didn't make the code any better after all...

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to