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 214064 - Code folding in Javascript objects and private methods
Summary: Code folding in Javascript objects and private methods
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.1
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2012-06-12 17:53 UTC by felipenmoura
Modified: 2017-04-18 16:57 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description felipenmoura 2012-06-12 17:53:58 UTC
Product Version = NetBeans IDE 7.1.1 (Build 201203012225)
Operating System = Linux version 3.0.0-17-generic running on amd64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02

The issue I see, that is something usegul that could exist is the code folding for Javascript private variables. Also, object descriptions.
Like this:

var Human= (function(){
    // private variables
    var name= 'mary';
    var props= {
        height: '1.68m',
        numberOfEyes: 2,
        age: 72

    var run= function(){
        // private method run

    return {
        getName: function(){
            return name;
        getAge: function(){
            return props.age;

In that code, nothing can be folded! Neither the declared objects nor functions...not even the line "var Human= (function(){" can fold anything!