gozilla10 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Private variables in anonymous function declared as constructor not exported #336

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you've got code like this:

(function () {
    "use strict";

    /**
     * Creates a new test object
     * @constructor
     */
    var Test = function (test) {
            ..
        }

        Test.prototype.prepMsg = function (from, to, status, message) {
            ...
    };
}
And try to create jsdocs from it, it gives "[WARNING] JSDoc Toolkit: Trying to 
document prepMsg as a member of undocumented symbol Test." If you remove the 
var, it doesn't give this error. This is a serious issue. Private variables 
should be documented and documentation should be exported IMO...

Original issue reported on code.google.com by dieterbl...@gmail.com on 13 Mar 2012 at 12:30