code_junkie

JavaScript intellisense in Visual Studio 2008

Nov 11th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. var Persons = {};
  2. Persons.Females = {};
  3.  
  4. Persons.Females.Julie = function (_mood)
  5. {
  6. /// <param name="_mood">Mood of Julie</param>
  7. /// <summary>Constructor function: Julie, a 22 year old female</summary>
  8. /// <returns>New instance of Julie</returns>
  9.  
  10. var breasts, thighs, stomach; // Private variables
  11.  
  12. this.mood = _mood; // Public variable
  13.  
  14.  
  15. function accessBodypart(_bodypart) // Private function
  16. {
  17. /// <param name="_bodypart">Bodypart to access</param>
  18. }
  19.  
  20.  
  21. this.access = function (_bodypart, _accessee) // Privileged function
  22. {
  23. /// <param name="_bodypart">Access a bodypart on Julie</param>
  24. /// <param name="_accessee">Person accessing Julie</param>
  25. /// <summary>If you have sufficient rights, you may use this
  26. /// function</summary>
  27. /// <returns>Julie's reaction</returns>
  28.  
  29. if (_accessee.status === "boyfriend")
  30. {
  31. accessBodypart(_bodypart);
  32.  
  33. return "Giggles";
  34. }
  35.  
  36. return "Slap in the face";
  37. };
  38. };
  39.  
  40.  
  41. var happyJulie = Persons.Females.Julie("happy");
  42.  
  43. happyJulie.access("breasts");
Add Comment
Please, Sign In to add comment