Spec-Zone.ru › JSDoc

@this

Table of Contents

  • Syntax
  • Overview
  • Examples
  • Related Links

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;
}

Related Links

@memberof

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API