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

Summary: Code completion doesn't show properties from returned function
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: pjiricka
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 244250    

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().