re: Singleton in JavaScript VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

I forgot about constructors prototype chain :P

Here you have working example:

This is not a singleton class now :) But nevertheless, excellent example.

code of conduct - report abuse