Advertisement
Guest User

Untitled

a guest
Mar 1st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. var MyModule = (function(captures)
  2. {
  3. var pype = MyModule_Constructor.prototype;
  4.  
  5. var private_static;
  6. pype.public_static;
  7.  
  8. function MyModule_Constructor(options)
  9. {
  10. var self = this;
  11.  
  12. var private_per_instance;
  13. self.public_per_instance;
  14. }
  15. return MyModule_Constructor;
  16.  
  17. })("your module captures here");
  18.  
  19. // Usage of your module then becomes:
  20. var myModuleInstance = new MyModule("your per instance options here");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement