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

Unified Diff: pkg/observe/lib/src/bindable.dart

Issue 307793002: update polymer, nodebind, and templatebinding (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: roll Created 6 years, 7 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 | « no previous file | pkg/observe/lib/src/path_observer.dart » ('j') | pkg/observe/lib/transformer.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/src/bindable.dart
diff --git a/pkg/observe/lib/src/bindable.dart b/pkg/observe/lib/src/bindable.dart
index 636ef3034364f352155df1fa35d15fe58402adb7..4b628a60b82e3931ec67ecba50986bc090ac5e55 100644
--- a/pkg/observe/lib/src/bindable.dart
+++ b/pkg/observe/lib/src/bindable.dart
@@ -9,8 +9,10 @@ library observe.src.bindable;
// TODO(jmesserly): Node.bind polyfill calls this "observable"
abstract class Bindable {
// TODO(jmesserly): since we have "value", should open be a void method?
- // TODO(jmesserly): not sure how I feel about open taking a variable number
- // of arguments, but it's the easiest way to make CompoundObserver work.
+ // Dart note: changed setValue to be "set value" and discardChanges() to
+ // be "get value". Also "set value" implies discard changes.
+ // TOOD(jmesserly): is this change too subtle? Is there any other way to
+ // make Bindable friendly in a world with getters/setters?
/// Initiates observation and returns the initial value.
/// The callback will be called with the updated [value].
« no previous file with comments | « no previous file | pkg/observe/lib/src/path_observer.dart » ('j') | pkg/observe/lib/transformer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698