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.
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.