W3cubDocs

/JSDoc

@this

Table of Contents

Syntax

@this <namePath>

Overview

The @this tag indicates what the this keyword refers to when used within another symbol.

Examples

In the following example, the @this tag causes "this.name" to be documented as "Greeter#name" rather than a global symbol called "name".

/** @constructor */
function Greeter(name) {
    setName.apply(this, name);
}

/** @this Greeter */
function setName(name) {
    /** document me */
    this.name = name;
}

@memberof

© 2011–2017 the contributors to the JSDoc 3 documentation project
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://usejsdoc.org/tags-this.html