Ok, I get what you are trying to do. Your example doesn't do it though...I would still use closures, but slightly modified: http://jsfiddle.net/GPdYw/1/
- [Moo] Private & Protected variables in Class piotr_cz
- Re: [Moo] Private & Protected variables in Class Sean McArthur
- Re: [Moo] Private & Protected variables in Cl... Olmo Maldonado
- [Moo] Re: Private & Protected variables i... piotr_cz
- Re: [Moo] Re: Private & Protected var... Sean McArthur
- Re: [Moo] Re: Private & Protecte... Aaron Newton
- [Moo] Re: Private & Protecte... piotr_cz
- [Moo] Re: Private & Prot... verylastminute
- [Moo] Re: Private & Prot... piotr_cz
- [Moo] Re: Private & Prot... verylastminute
- [Moo] Re: Private & Prot... piotr_cz
- [Moo] Re: Private & Prot... verylastminute
- Re: [Moo] Re: Private & ... Philip Thompson