Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var ClassName = function(){
  2. // private variables
  3. var d = {};
  4.  
  5. // constructor method
  6. (function __construct(){
  7. d.string = "what";
  8. })();
  9.  
  10. // public methods
  11. var m = {};
  12.  
  13. m.open = function(){
  14. alert(d.string);
  15. };
  16.  
  17. m.close = function(){
  18. alert(d.string);
  19. };
  20.  
  21. return m;
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement