• constructor

@prototype DocumentJS.tags.prototype

 

@prototype

/**
 * @constructor
 * Creates an Animal
 */
Animal = function(){ ... }
/** @prototype */
Animal.prototype = {
   /**
    * Eats another animal.
    */
    eat: function(animal){ ... }
}

Declares that [documentjs/tags/property @property] and [documentjs/tags/function @function] tags belong to the preceeding [documentjs/tags/function @constructor]'s prototype object.