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 238648 - Self pattern breaks controller discovery
Summary: Self pattern breaks controller discovery
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-21 13:17 UTC by Vladimir Riha
Modified: 2014-02-07 07:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (8.00 KB, application/zip)
2013-11-21 13:17 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-11-21 13:17:32 UTC
Created attachment 142443 [details]
sample project

Please try the attached project, open partials/db.html and invoke cc at line 1 for attribute data-ng-controller

=> controllers DBCtrl and UserCtrl are not offered, it is somehow caused by having 

var self = this;

inside them.



Product Version: NetBeans IDE Dev (Build web-main-57-on-20131121)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2014-02-04 09:19:21 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2014-02-05 02:45:03 UTC
Integrated into 'main-silver', will be available in build *201402050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5495ab3d6748
User: Petr Pisl <ppisl@netbeans.org>
Log: #238648 - Self pattern breaks controller discovery
Comment 3 Vladimir Riha 2014-02-07 07:55:42 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201402070001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b128
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)