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

Summary: functions declared with var not fully recognized as such
Product: javascript Reporter: luksurious
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:

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.