Bug 425059 - @private / @protected works only with object literals
Summary: @private / @protected works only with object literals
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.5.1   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-08 00:55 EST by Dawid Pakula CLA
Modified: 2014-01-08 00:55 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Pakula CLA 2014-01-08 00:55:28 EST
This works:
function MyClass()
{}

MyClass.prototype =
{
    /**
     * @private
     */
    myfunc : function() {}
};

But this no:
function MyClass()
{
   /**
     * @private
     */
    this.myfunc = function() {}
}