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 239862 - Type of id property not resolved as string
Summary: Type of id property not resolved as string
Status: RESOLVED INCOMPLETE
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-29 20:18 UTC by douglasv
Modified: 2015-08-17 08:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (32.39 KB, text/plain)
2013-12-29 20:18 UTC, douglasv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description douglasv 2013-12-29 20:18:02 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56

$('#horsee button').on('click', function(){
        var rabbitClass = this.id.split('-')[1];

the DOM-  split() - is not recognized by auto complete
Comment 1 douglasv 2013-12-29 20:18:04 UTC
Created attachment 143511 [details]
IDE log
Comment 2 Vladimir Riha 2013-12-30 06:32:17 UTC
Press Ctrl+Space twice, it offers "full" code completion regardless variable type. Reproducible.


Product Version: NetBeans IDE Dev (Build 201312170002)
Comment 3 Petr Pisl 2015-08-17 08:55:21 UTC
The example code is to short. From this really NB can not recognized the type of this.id property. But as Vlada wrote, you can use CTRL+Space twice. Marking the issue as incomplete. For better type recognition we need better sample code.