/tags/jsdoc_toolkit-1.3.3/test/data/nested_funcs.js

http://jsdoc-toolkit.googlecode.com/ · JavaScript · 25 lines · 14 code · 2 blank · 9 comment · 0 complexity · e10478847f5830e30aa57355143c0189 MD5 · raw file

  1. /**
  2. @class
  3. */
  4. Foo = function(id) {
  5. // this is a bit twisted, but if you call Foo() you will then
  6. // modify Foo(). This is kinda, sorta non-insane, because you
  7. // would have to call Foo() 100% of the time to use Foo's methods
  8. Foo.prototype.methodOne = function(bar) {
  9. alert(bar);
  10. };
  11. // same again
  12. Foo.prototype.methodTwo = function(bar2) {
  13. alert(bar2);
  14. };
  15. // and these are only executed if the enclosing function is actually called
  16. // and who knows if that will ever happen?
  17. Bar = function(pez) {
  18. alert(pez);
  19. };
  20. Zop.prototype.zap = function(p){
  21. alert(p);
  22. }
  23. };