this[property] gets recognized as class member in ESDoc. #59

Closed
Rukenshia opened this Issue Aug 29, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@Rukenshia

I sometimes manipulate properties of my class via this[property] = value. This however generates a public member 'property' in my ESDoc generated document:

class Foo {
  /**
   * Creates a new instance of Foo
   *
   * @constructor
   */
  constructor() {
    /** @type {string} */
    this.foo = 'bar';
  }

  /**
   * Set the given property in the class.
   *
   * @param {string} property property to set
   * @param {*} value new value
   */
  manipulate(property, value) {
    this[property] = value;
  }
}

Result

@h13i32maru

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Aug 30, 2015

Member

@Rukenshia Thanks for this issue!
This is ESDoc bug. Please wait a little for fixing it.

Member

h13i32maru commented Aug 30, 2015

@Rukenshia Thanks for this issue!
This is ESDoc bug. Please wait a little for fixing it.

@h13i32maru

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Aug 30, 2015

Member

I published ESDoc v0.2.4. Please try to use it 😄

Member

h13i32maru commented Aug 30, 2015

I published ESDoc v0.2.4. Please try to use it 😄

@h13i32maru h13i32maru closed this Aug 30, 2015

@Rukenshia

This comment has been minimized.

Show comment
Hide comment
@Rukenshia

Rukenshia Aug 30, 2015

Works fine now.

Works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment