gozilla10 / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Class properties are all static instead of instance members. #262

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. create a class with a property a document it:
/**
@class Represents a person.
@property {Number} [publicProperty=0] A property.
*/
Person = function()
{
    this.publicProperty = 0;
    this.publicMethod = function(){}
    var privateMethod = function(){}
}

What is the expected output? What do you see instead?

I expect the property to be a public instance member of the class
(Person#publicProperty).
But the property is marked as static, it is not supossed to be static, I
cannot use it like this:
Person.publicProperty = 9;
but rather like this:
(new Person()).publicProperty = 9;

What version of the product are you using? On what operating system?

2.3.0

Original issue reported on code.google.com by jbm...@gmail.com on 28 Oct 2009 at 6:11

GoogleCodeExporter commented 8 years ago

Original comment by micmath on 28 Oct 2009 at 11:18

GoogleCodeExporter commented 8 years ago
This was fixed in revision 816.

Thank you for reporting this.

Original comment by micmath on 28 Oct 2009 at 11:26