Click here to Skip to main content
15,886,530 members
Articles / Web Development / HTML

Safe Factory Pattern - Private instance state in JavaScript

Rate me:
Please Sign up or sign in to vote.
4.85/5 (11 votes)
18 Jul 2014CPOL24 min read 78.2K   166   26  
Enabling private state in any JavaScript object.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer WebDetails
Portugal Portugal
I am an electrical engineer, but instead I do programming for a living. Currently, I work at WebDetails (a Pentaho company), where among other things, I maintain the CTools' CCC charting library.

"The true sign of intelligence is not knowledge but imagination." [Einstein]

Comments and Discussions