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

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

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/base/Device.dart ('k') | samples/ui_lib/touch/Geometry.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 9c244ab2a83dde8f76dc5fd729eab313a8d6449a..a139693b887f05455319e5236ca5c0225a6e6fee 100644
--- a/samples/ui_lib/observable/observable.dart
+++ b/samples/ui_lib/observable/observable.dart
@@ -51,7 +51,7 @@ class AbstractObservable implements Observable {
List<ChangeListener> listeners;
/** Whether this object is currently observed by listeners or propagators. */
- bool get isObserved() {
+ bool get isObserved {
for (Observable obj = this; obj != null; obj = obj.parent) {
if (listeners.length > 0) {
return true;
@@ -148,7 +148,7 @@ class ObservableList<T>
_internal[index] = value;
}
- int get length() => _internal.length;
+ int get length => _internal.length;
void set length(int value) {
_internal.length = value;
@@ -281,7 +281,7 @@ class ObservableValue<T> extends AbstractObservable {
ObservableValue(T value, [Observable parent = null])
: super(parent), _value = value;
- T get value() => _value;
+ T get value => _value;
void set value(T newValue) {
// Only fire on an actual change.
« no previous file with comments | « samples/ui_lib/base/Device.dart ('k') | samples/ui_lib/touch/Geometry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698