[jQuery] Re: Defining of a function

2007-04-12 Thread Andy Matthews
I don't know about Javascript, but in Flash, if you use the first method, you can place the function in any location in your code and it can be called from any location in your code. Using the second method, the function definition has to be placed before it's call. -Original Message-

[jQuery] Re: Defining of a function

2007-04-12 Thread Klaus Hartl
Mike Alsup schrieb: The difference between a function declaration and a function expression is when the actual function object gets created. The easiest way to think of it is that function declarations are always available and function expressions are not available until they have been

[jQuery] Re: Defining of a function

2007-04-12 Thread Andy Matthews
That's a perfect write-up on this issue. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Thursday, April 12, 2007 11:27 AM To: [EMAIL PROTECTED] Subject: [jQuery] Re: Defining of a function Mike Alsup schrieb: The difference

[jQuery] Re: Defining of a function

2007-04-12 Thread Olaf Gleba
Am 12.04.2007 um 18:16 schrieb Mike Alsup: The difference between a function declaration and a function expression is when the actual function object gets created. The easiest way to think of it is that function declarations are always available and function expressions are not available