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.
In following example (function () { function Demo($scope) { $scope.text = 'Hello World!'; } function IndexedDemo() { this.sample = 5; } })(); function Demo is NOT indexed, but IndexedDemo is indexed. This leads to an issue in AngularJS support (bug #246444).
Also function which is the second argument in the following sample is NOT indexed: (function () { app.controller('DemoCtrl', function () { // This function is NOT indexed this.sample = 5; }); })(); When the same function is named, then it IS indexed: (function () { app.controller('DemoCtrl', function DemoCtrl() { // This function IS indexed this.sample = 5; }); })();