I was wondering if there was a way to share data between instances of a particular javascript constructor, or at least between a limited set of objects, and not to the rest of the application.
In other words, private properties for a single object are easily implemented through the revealing module pattern, but what if you wanted a shared private property between all the instances of a particular constructor?
So let’s get to an example...
Your new post is loading...