PageRenderTime 28ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/wiki/TagStatic.wiki

http://jsdoc-toolkit.googlecode.com/
Unknown | 29 lines | 20 code | 9 blank | 0 comment | 0 complexity | b3910f97c52e0100bdaa92877b8f6004 MD5 | raw file
  1. #summary @static
  2. == The @static Tag ==
  3. The `@static` tag indicate that accessing the documented variable does not require instantiation of its parent or containing object.
  4. === Syntax ===
  5. {{{
  6. @static
  7. }}}
  8. === Example ===
  9. {{{
  10. Hello = {}
  11. /**
  12. * @static
  13. */
  14. Hello.World = function() {
  15. alert("Hello world");
  16. }
  17. }}}
  18. In this case you are documenting that the `World` function is a static method of the `Hello` object. In most cases the !JsDoc Toolkit parser can determine that fact on its own, but this tag may rarely be required when it can't.
  19. === See Also ===
  20. * The [TagNamespace @namespace] tag is used to document that a variable is meant to be used like a "namespace" with static properties.