| Index: third_party/pkg/angular/lib/directive/ng_a.dart
|
| ===================================================================
|
| --- third_party/pkg/angular/lib/directive/ng_a.dart (revision 33054)
|
| +++ third_party/pkg/angular/lib/directive/ng_a.dart (working copy)
|
| @@ -7,7 +7,7 @@
|
| *
|
| * @description
|
| * Modifies the default behavior of the html A tag so that the default action is prevented when
|
| - * the a href is empty or it contains `ng-click` directive.
|
| + * the href attribute is empty.
|
| *
|
| * This change permits the easy creation of action links with the `ngClick` directive
|
| * without changing the location or causing page reloads, e.g.:
|
| @@ -15,11 +15,10 @@
|
| */
|
| @NgDirective(selector: 'a[href]')
|
| class NgADirective {
|
| - final dom.Element element;
|
| + dom.Element element;
|
|
|
| - NgADirective(this.element) {
|
| - if (element.attributes["href"] == "" ||
|
| - element.attributes.containsKey('ng-click')) {
|
| + NgADirective(dom.Element element) {
|
| + if (element.attributes["href"] == "") {
|
| element.onClick.listen((event) {
|
| if (element.attributes["href"] == "") {
|
| event.preventDefault();
|
|
|