I'd say jsdoc for "function foo() {}" is the same as for "var foo =
function () {}"
var
/**
* @type Number
* @default 2
*/
a = 2,
/**
* @type Number
* @default 2
*/
b = 2
;
Fran
On 27/03/2011 21:50, Peter van der Zee wrote:
So, I'm looking at jsdoc-toolkit. Can't really find docs about it. I
mean the wiki has individual tags covered, but not how to actually
annotate declarations.
http://code.google.com/p/jsdoc-toolkit/
Then there's the closure compiler docs. But they don't really go deep
either. Well, or I'm missing it here as well.
http://code.google.com/intl/nl/closure/compiler/docs/js-for-compiler.html
So, according to "jsdoc", how should I annotate a function expression
and a variable statement with multiple variables declared...
var f = function(){};
var a = 1, b = 2;
I have some things in mind of doing it, but I want to make sure I'm
not overlooking some kind of accepted standard for doing it in JS :)
- peter
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]