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 231751 - Missing object's properties if declared via anonymous function
Summary: Missing object's properties if declared via anonymous function
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-25 06:19 UTC by Vladimir Riha
Modified: 2013-06-27 06:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-06-25 06:19:31 UTC
Please try this sample

function Test() {

    this.publisher = new function() {
        this.listeners = [];

        this.subscribe = function(callback, event) {
            event = event || 'any';
            if (typeof this.listeners[event] === "undefined") {
                this.listeners[event] = [];
            }
            this.listeners[event].push(callback);
        };
    };
}

in Navigator, function subscribe() and array listeners are not displayed



Product Version: NetBeans IDE Dev (Build web-main-10892-on-20130625)
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2013-06-26 13:29:52 UTC
Fixed in webmain: http://hg.netbeans.org/web-main/rev/75316cb32b3a

There is still problem with the properties declared as an array. See issue #231841
Comment 2 Quality Engineering 2013-06-27 02:18:35 UTC
Integrated into 'main-golden', will be available in build *201306262301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/75316cb32b3a
User: Petr Pisl <ppisl@netbeans.org>
Log: #231751 - Missing object's properties if declared via anonymous function
Comment 3 Vladimir Riha 2013-06-27 06:08:22 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201306262301)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)