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.
Created attachment 125370 [details] Singleton pattern used in my project. Note that I'm using a pattern in which you define and create an anonymous class and write it to an object (`SomeSingleton = new function (){...}`). Example attached. Netbeans 7.3 bet editor is better in that it recognizes a private function, but the problem is it doesn't attach any functions or variables (properties) to the singleton class. It shows it as undefined and other functions and properties are on the same level. Due to this behavior autocomplete for the singleton doesn't work.
fixed in web-main: http://hg.netbeans.org/web-main/rev/36c286201fb4
Integrated into 'main-silver', will be available in build *201307192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/36c286201fb4 User: Petr Pisl <ppisl@netbeans.org> Log: #219508 - Support for JavaScript new function() singleton pattern
Created attachment 138113 [details] another test file Strange @class tag in comment above the declaration breaks parsing apart. Not sure if this is a bug but all public methods and variables appear to be treated as kind of global. Kind of because autocomplete still works in mentioned nightly. It doesn't work at all in 7.4 beta (using PHP build in both cases).
This is already fixed. Added test for it. http://hg.netbeans.org/web-main/rev/6dc8e0cd72c5