This is correct. In javascript the inner functions have access to the variables of the outer function. They even retain that direct access after the outer function has returned, allowing you to create private variables and methods (through closure).
- [jQuery] using a var in both functions of a hover(... Olivier Percebois-Garve
- [jQuery] Re: using a var in both functions of... Joel Birch
- [jQuery] Re: using a var in both function... Suni