
04-23-2011, 06:31 AM
|
|
Banned
|
Join Date: Feb 2007
Posts: 1,002
|
|
|
Right, without the 'temp.' before it, i becomes a global variable and causes all sorts of muck and crazy behavior!
Easy rule: always prefix your variables and function calls, either with this or temp.
This way it is very clear when you are actually working with global variables and functions (due to lack of prefix). |
|
|
|