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 231920 - ExtJS: Object defined via function not recognized
Summary: ExtJS: Object defined via function not recognized
Status: NEW
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-27 11:03 UTC by Vladimir Riha
Modified: 2013-06-27 13:32 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 Vladimir Riha 2013-06-27 11:03:21 UTC
Please try this:

Ext.define('MyApp.foo.Bar', function() {
    var id = 0;
    return {
        nextId: function() {
            return ++id;
        }
    };
});


=> this object is not recognized, no cc, name in Ext.define's first parameter looks like plain string


Product Version: NetBeans IDE Dev (Build web-main-10912-on-20130626)
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)