@add module
Sets a DocObject as the current scope.
@add NAME
Parameters
- NAME
{STRING}
:The name of DocObject to set as the scope.
Use
bit-docs-js/tags/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: {}
})