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 244506 - Code completion doesn't show properties from returned function
Summary: Code completion doesn't show properties from returned function
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 244250
  Show dependency tree
 
Reported: 2014-05-15 09:01 UTC by Petr Pisl
Modified: 2014-07-18 11:47 UTC (History)
1 user (show)

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 Petr Pisl 2014-05-15 09:01:42 UTC
Have this pattern:

var testContext = testContext || {
    createMethod: function() {
        return function() {
            return {
                prop1: "prop1",
                prop2: 20
            };
        };
    }
}

var myfn = testContext.createMethod();
console.log(myfn().|);

The code completion doesn't show properties of the object returned from myfn().