gozilla10 / jsdoc-toolkit

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

Unnecessary warning triggered when referencing 'this' inside a @lends block #300

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This code generates a warning which seems unnecessary. The resulting docs 
appear to be complete though.

/** @namespace */
var foo = {};

/** @memberOf foo
 * @class
 *
 * The base class all visual elements extend from
 */
var Bar = makeClass(/** @lends foo.Bar# */{
    /**
     * A test property
     * @property {String}
     */
    moo: null,

    /**
     * Initializes the object
     */
    init: function() {
        var a = 'b';
        this.moo = 'test';  // Causes: WARNING: Trying to document foo.Bar#init without first documenting foo.Bar.
    }
});

Original issue reported on code.google.com by rat...@gmail.com on 19 Sep 2010 at 6:54