4 ms·
Thank you very much. It's the first time I see this pattern and a clear specification. I used privileged methods everywhere instead of shared public methods bas
by chmike 15y ago
Thank you very much. It's the first time I see this pattern and a clear specification. I used privileged methods everywhere instead of shared public methods based on this article: http://javascript.crockford.com/private.html http://javascript.crockford.com/private.html
The missing infos in the StackOverflow answer are how do one instantiate such class and access it's methods and public and shared members ? var obj = new MyObj() ? obj.publicSharedVar ?