Wednesday, February 28, 2007

Private Static Members in Javascript

It was a widely held belief that javascript objects could not have private instance members, that all javascript object properties where public and could be accessed and changed with external code. Douglas Crockford has demonstrated that closures can be used to provide javascript objects with private members.

read more | digg story