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

Summary: ExtJS: Object defined via function not recognized
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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)