Question

how can i made this comment's properly using jsdoc. Any ideas???

   /**********************
* @variables : global variables
***************************/
var map; // this var handle the object related with the map
var image;
var currentMark;
Était-ce utile?

La solution

Just add a documentation comment right before the variable:

/** this var handle the object related with the map */
var map;
/** An image */
var image;
// Undocumented variables will not show up
var currentMark;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top