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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://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
===================================================================
--- third_party/pkg/angular/lib/directive/ng_show_hide.dart (revision 33054)
+++ third_party/pkg/angular/lib/directive/ng_show_hide.dart (working copy)
@@ -7,11 +7,11 @@
*/
@NgDirective(
selector: '[ng-hide]',
- map: const {'ng-hide': '=>hide'})
+ map: const {'ng-hide': '=>hide'} )
class NgHideDirective {
static String NG_HIDE_CLASS = 'ng-hide';
- final dom.Element element;
+ dom.Element element;
NgHideDirective(this.element);
@@ -33,15 +33,17 @@
selector: '[ng-show]',
map: const {'ng-show': '=>show'})
class NgShowDirective {
- final dom.Element element;
+ static String NG_SHOW_CLASS = 'ng-show';
+ dom.Element element;
+
NgShowDirective(this.element);
set show(value) {
if (toBool(value)) {
- element.classes.remove(NgHideDirective.NG_HIDE_CLASS);
+ element.classes.add(NG_SHOW_CLASS);
} else {
- element.classes.add(NgHideDirective.NG_HIDE_CLASS);
+ element.classes.remove(NG_SHOW_CLASS);
}
}
}
« no previous file with comments | « third_party/pkg/angular/lib/directive/ng_repeat.dart ('k') | third_party/pkg/angular/lib/directive/ng_src_boolean.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698