My favorites | Sign in
Project Logo
                
Search
for
Updated Aug 22, 2009 by micmath
TagConstructs  
@constructs

The @constructs Tag

When using the @lends tag, the @constructs tag allows you to document that a particular function will be used to construct instances of the class.

Syntax

@constructs

Example

var Person = makeClass(
    /**
      @lends Person.prototype
    */
    {
        /** @constructs */
        initialize: function(name) {
            this.name = name;
        },
        say: function(message) {
            return this.name + " says: " + message;
        }
    }
);

Note: that when using this tag you should not also use the @constructor or @class tag, all documentation for the class should go in the @constructs doc comment instead.

See Also

Hosted by Google Code