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

Unified Diff: samples/ui_lib/observable/observable.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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
« no previous file with comments | « samples/ui_lib/observable/ChangeEvent.dart ('k') | samples/ui_lib/touch/Momentum.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/observable/observable.dart
diff --git a/samples/ui_lib/observable/observable.dart b/samples/ui_lib/observable/observable.dart
index 41e0e03c7d290c62de165b79632c9be7a8fc66e5..82c231f2d34cad71cf173a872122753fe537b5ce 100644
--- a/samples/ui_lib/observable/observable.dart
+++ b/samples/ui_lib/observable/observable.dart
@@ -267,7 +267,7 @@ class ObservableList<T>
bool every(bool f(T element)) => _internal.every(f);
bool some(bool f(T element)) => _internal.some(f);
void forEach(void f(T element)) { _internal.forEach(f); }
- bool isEmpty() => length == 0;
+ bool get isEmpty => length == 0;
}
// TODO(jmesserly): is this too granular? Other similar systems make whole
« no previous file with comments | « samples/ui_lib/observable/ChangeEvent.dart ('k') | samples/ui_lib/touch/Momentum.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698