/trunk/jsdoc-toolkit/app/test/functions_anon.js

http://jsdoc-toolkit.googlecode.com/ · JavaScript · 39 lines · 18 code · 5 blank · 16 comment · 0 complexity · 20ea76bf3bf67a4c22c5551ae1196ad4 MD5 · raw file

  1. /** an anonymous constructor executed inline */
  2. a = new function() {
  3. /** a.b*/
  4. this.b = 1;
  5. /** a.f */
  6. this.f = function() {
  7. /** a.c */
  8. this.c = 2;
  9. }
  10. }
  11. /**
  12. named function executed inline
  13. */
  14. bar1 = function Zoola1() {
  15. /** property of global */
  16. this.g = 1;
  17. }();
  18. /**
  19. named constructor executed inline
  20. */
  21. bar2 = new function Zoola2() {
  22. /** property of bar */
  23. this.p = 1;
  24. };
  25. /** module pattern */
  26. module = (function () {
  27. /** won't appear in documentation */
  28. var priv = 1;
  29. /** @scope module */
  30. return {
  31. /** will appear as a property of module */
  32. pub: 1
  33. }
  34. })();