Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: third_party/pkg/angular/lib/directive/a_href.dart

Issue 256553002: Revert "Update all Angular libs (run update_all.sh)." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/directive/a_href.dart
diff --git a/third_party/pkg/angular/lib/directive/a_href.dart b/third_party/pkg/angular/lib/directive/a_href.dart
deleted file mode 100644
index 0241dfbb620847d7c820278a8807268117661075..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/lib/directive/a_href.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-part of angular.directive;
-
-/**
- * @ngdoc directive
- * @name ng.directive:a
- * @restrict E
- *
- * @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.
- *
- * This change permits the easy creation of action links with the `ngClick`
- * directive without changing the location or causing page reloads, e.g.:
- * `<a href="" ng-click="model.save()">Save</a>`
- */
-@Decorator(selector: 'a[href]')
-class AHref {
- final dom.Element element;
-
- AHref(this.element, VmTurnZone zone) {
- if (element.attributes["href"] == "") {
- zone.runOutsideAngular(() {
- element.onClick.listen((event) {
- if (element.attributes["href"] == "") {
- event.preventDefault();
- }
- });
- });
- }
- }
-}
« no previous file with comments | « third_party/pkg/angular/lib/css/angular.css ('k') | third_party/pkg/angular/lib/directive/input_select.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698