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 231533 - Mark occurrences and navigation doesn't work, when the function is defined in an object with namespaces
Summary: Mark occurrences and navigation doesn't work, when the function is defined in...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 217992
  Show dependency tree
 
Reported: 2013-06-19 15:11 UTC by Petr Pisl
Modified: 2013-06-21 08:43 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 Petr Pisl 2013-06-19 15:11:23 UTC
it("case1: multiple namespaces", function() {
            var beasties = {};
            
            beasties.Animal = function() {};
            beasties.Animal.prototype.roar = function() {return 'rrrr';};
            
            var animal = new beasties.Animal();

            expect(animal.roar()).toEqual('rrrr'); // ctr+click does not work on roar
        });
Comment 1 Petr Pisl 2013-06-21 08:43:47 UTC
Fixed in web-main:
http://hg.netbeans.org/web-main/rev/09a51216e4bc