Closed GoogleCodeExporter closed 9 years ago
The @constructs tag is redundant when used with the @class tag for TheClass,
see the docs:
http://code.google.com/p/jsdoc-toolkit/wiki/TagConstructs
This should work...
TheClass = Class.create(
/** @lends TheClass.prototype */
{
/** @constructs
@description This is the constructor!
@param {Number} a
@param {String} b
*/
initialize: function(a, b)
{
}
}
);
Original comment by micmath
on 21 Aug 2009 at 2:07
Ah, sorry. I was still in the 1.x mode of thinking which required both the
@class and @constructs. Thanks.
It's isn't entirely clear from the documentation for the @constructs tag that
@class isn't required.
Original comment by jwmetrocat@gmail.com
on 21 Aug 2009 at 6:16
Thanks for pointing that out, I've updated the wiki to make this point more
clear.
Original comment by micmath
on 22 Aug 2009 at 5:21
Original issue reported on code.google.com by
jwmetrocat@gmail.com
on 19 Aug 2009 at 5:58Attachments: