@function
or @property tags created
without a name, or with a "short name" will use the current
scope to guess their full name and parent. @add can set the scope,
allowing comments to not have to write out a full name and @parent tag.
In the following example, a docObject named lib.Component.prototype.plugin
and lib.Component.prototype.draw will be created, each with lib.Component.prototype
as their parent.
/** @add lib.Component.prototype */
lib.extend(lib.Component.prototype,{
/**
* A plugin method on [lib.Component]
*/
plugin: function(){},
/**
* @property draw
* A plugin method on [lib.Component]
*/
draw: {}
})
Use
@function or @property tags created without a name, or with a "short name" will use the current scope to guess their full name and parent.
@add
can set the scope, allowing comments to not have to write out a full name and @parent tag.In the following example, a docObject named
lib.Component.prototype.plugin
andlib.Component.prototype.draw
will be created, each withlib.Component.prototype
as their parent.