/wiki/TagInner.wiki

http://jsdoc-toolkit.googlecode.com/ · Unknown · 30 lines · 22 code · 8 blank · 0 comment · 0 complexity · 41c44ea0e7253d1dda90b030f03ba05a MD5 · raw file

  1. #summary @inner
  2. == The @inner Tag ==
  3. Use the @inner tag to indicate the function is an inner function. Inner functions are declared in the scope of an outer function, and are not directly accessible from outside that outer function.
  4. === Syntax ===
  5. {{{
  6. @inner
  7. }}}
  8. === Examples ===
  9. In many cases this tag is not neccessary, as !JsDoc Toolkit can already recognize the fact that a function is an inner function on its own.
  10. {{{
  11. /**
  12. @constructor
  13. */
  14. Person = function() {
  15. /** @inner */
  16. function daydream() {
  17. }
  18. }
  19. }}}
  20. Because of the limited scope of the Person function, the daydream function is not directly accessible from outside of Person. For this reason JsDoc Toolkit will also mark it as `@private`.
  21. === See Also ===
  22. * The [TagPrivate @private] tag.