@property
documentjs.tags.property
Documents a property of a parent object.
@property {TYPE} NAME [TITLE]
Documents a
property named NAME
of type {TYPE}
.
/**
* @property {Number} delay
* Sets the delay in milliseconds between an ajax request is made and
* the success and complete handlers are called. This only sets
* functional fixtures. By default, the delay is 200ms.
*/
$.fixture.delay = 200
Parameters
-
TYPE
{TYPE-EXPRESSION}
OptionalAn optional type like
{Object}
. -
NAME
{NAME-EXPRESSION}
OptionalThe name of the property. This maybe infered from the code block immediately following the comment.
-
TITLE
{STRING}
OptionalThe display title of the property.
["']?(\w+)["']?\s*[:=]\s*
If code matches the above regular expression and is not a function, it is automatically assumed to be a property.