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 231449 - Code completion doesn't work for array items, that are defined via assignment
Summary: Code completion doesn't work for array items, that are defined via assignment
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:
 
Reported: 2013-06-18 14:17 UTC by Petr Pisl
Modified: 2013-06-18 15:05 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-18 14:17:28 UTC
When you have code:

function getdate() {
    return new Date();
}

var ar = new Array();

ar[0] = "ahoj";
ar[1] = 10;
ar[2] = "cau";
ar[3] = getdate();
var prom1 = ar[1].toUpperCase();
var prom2 = ar[3].getDay();
var prom3 = ar[2].toPrecision();   
  

the code completion for promx doesn't work. When the array is defined through the array literal, then it works.
Comment 1 Petr Pisl 2013-06-18 15:05:22 UTC
Fixed in web-main:
http://hg.netbeans.org/web-main/rev/5c4aef54114f