immatureprogrammerr / basic-browser-chess

Automatically exported from code.google.com/p/basic-browser-chess
0 stars 0 forks source link

Clean up globals #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Use "static" variables.
JavaScript doesn't have static variables, but because functions are treated as 
objects, you can have a property assigned to the function and it will behave 
like a static variable.

http://www.tipstrs.com/tip/1084/Static-variables-in-Javascript

Original issue reported on code.google.com by Dennis.I.89 on 19 Nov 2010 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by Dennis.I.89 on 20 Nov 2010 at 9:23