Posted By

rccc on 11/13/09


Tagged

javascript oop


Versions (?)

javascript singleton


 / Published in: JavaScript
 

URL: http://dhtmlkitchen.com/learn/js/singleton/

  1. var myVar = new function test(){
  2. var privateMember = value;
  3. this.publicMember = value;
  4. }

Report this snippet  

You need to login to post a comment.