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 231530

Summary: Mark occurrences and navigation doesn't work doesn't work correctly in anonymous objects
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 217992    

Description Petr Pisl 2013-06-19 14:57:09 UTC
This is one case from issue 217992:

it("case3: wrapped object", function() {
    var obj = (function() {
        return {    
            f2: function() {
                return this.f1(); // ctr+click does not work on f1
            },
            f1: function() {
                return 'f1';
            }
        };
    })();
    expect(obj.f2()).toEqual('f1'); // here it works
});

Mark occurrences also doesn't work, when you place caret on this.f1()
Comment 1 Petr Pisl 2013-06-19 15:06:47 UTC
This case is fixed in web-main now
http://hg.netbeans.org/web-main/rev/919eefa2e809
Comment 2 Quality Engineering 2013-06-21 02:30:25 UTC
Integrated into 'main-golden', will be available in build *201306202301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/919eefa2e809
User: Petr Pisl <ppisl@netbeans.org>
Log: #231530 - Mark occurrences and navigation doesn't work doesn't work correctly in anonymous objects