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 204523 - functions declared with var not fully recognized as such
Summary: functions declared with var not fully recognized as such
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 14:52 UTC by luksurious
Modified: 2011-11-01 14:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luksurious 2011-11-01 14:52:28 UTC
In the Editor, when writing a function declaration that is defined with the keyword var, it is not recognized as a function and not collapsable.

e.g:

var myFunc = function(arg) {
    // doSomething
}

function myFunc(arg) {
    // doSomething
}

only the last declaration can be collapsed and is recognized by the IDE as a function.