This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 238685 - JSDoc not found in anonymous function
Summary: JSDoc not found in anonymous function
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 252017
  Show dependency tree
 
Reported: 2013-11-22 09:22 UTC by Vladimir Riha
Modified: 2015-05-01 02:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-11-22 09:22:13 UTC
Please try following in JS file


HudsonReader.utils.DB = function(callback, logger) { 
    /**
     * @param {Job} job
     * @param {Function} callback callback function
     */
    this.store = function(job, callback) {
        var transaction = datastore.transaction(["job"], "readwrite");
        var jobStore = transaction.objectStore("job");
        var query = jobStore.add(job);
        query.onerror = function(e) {
            callback(e.target.error.name);
        };
        query.onsuccess = function(e) {
            callback(null, "Job stored");
        };
    };
    
    this.
}


CC for "this." shows "Documentation not found". However, if I init a variable 


var a = new HudsonReader.utils.DB();
a.

=> JSDoc is displayed just fine



Product Version: NetBeans IDE Dev (Build 201311210002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b59
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b117
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Fousek 2014-01-15 08:52:53 UTC
Editor issue, reassigning.
Comment 2 Petr Pisl 2014-02-17 10:16:52 UTC
I expect, that you are talking about store function. I have noticed that after this. the store method is not resolved as a function, but property, it can be the reason.
Comment 3 Petr Pisl 2015-04-24 08:43:56 UTC
The issue 238685 is also connected with this.
Comment 4 Petr Pisl 2015-04-29 22:34:48 UTC
Fixed in web-main.
Comment 5 Quality Engineering 2015-05-01 02:54:41 UTC
Integrated into 'main-silver', will be available in build *201505010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/33914946becc
User: Petr Pisl <ppisl@netbeans.org>
Log: #238685 - JSDoc not found in anonymous function