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

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

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/ng_show_hide.dart
diff --git a/third_party/pkg/angular/lib/directive/ng_show_hide.dart b/third_party/pkg/angular/lib/directive/ng_show_hide.dart
index af9b4581e543b6b9e02c073919e1bda922a4ef01..560cfce76434ca8ddd27bc83536638468104f12c 100644
--- a/third_party/pkg/angular/lib/directive/ng_show_hide.dart
+++ b/third_party/pkg/angular/lib/directive/ng_show_hide.dart
@@ -7,11 +7,11 @@ part of angular.directive;
*/
@NgDirective(
selector: '[ng-hide]',
- map: const {'ng-hide': '=>hide'} )
+ map: const {'ng-hide': '=>hide'})
class NgHideDirective {
static String NG_HIDE_CLASS = 'ng-hide';
- dom.Element element;
+ final dom.Element element;
NgHideDirective(this.element);
@@ -33,17 +33,15 @@ class NgHideDirective {
selector: '[ng-show]',
map: const {'ng-show': '=>show'})
class NgShowDirective {
- static String NG_SHOW_CLASS = 'ng-show';
-
- dom.Element element;
+ final dom.Element element;
NgShowDirective(this.element);
set show(value) {
if (toBool(value)) {
- element.classes.add(NG_SHOW_CLASS);
+ element.classes.remove(NgHideDirective.NG_HIDE_CLASS);
} else {
- element.classes.remove(NG_SHOW_CLASS);
+ element.classes.add(NgHideDirective.NG_HIDE_CLASS);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698