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.
Have a code: var myModule = function() { return { foo: function() { console.log("foo"); }, bar: "bar" }; }; myModule().bar; myModule().foo(); var yourModule = myModule(); yourModule.bar; yourModule.foo(); Navigation from myModule().bar and myModule.foo doesn't work, but the navigation from yourModule.bar and yourModule.foo() works correctly.
Investigated this, it's likely an issue with the way Model is created. Here myModule() invoke call is never getting resolved, as it is not appearing under top fileObject function's properties. We resolve the properties and arguments recursively for Model objects. 'yourModule' is one of the properties under top fileObject function, so it is resolved and occurence is getting added to the anonymous object in myModule function.