Guest User

Untitled

a guest
Jan 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var Wasabi = function(){
  2.  
  3. var that = this,
  4. foo = "fooz", //privado
  5. bar = "baz"; //privado
  6.  
  7. this.method = function(){}; //public
  8. this.method2 = function(){}; //public
  9.  
  10. /*
  11. este return permite alterar os metodos publicos e privados
  12. method2 passou a ser privado.
  13. */
  14. return {
  15. method : that.method
  16. }
  17.  
  18. }
Add Comment
Please, Sign In to add comment