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

Unified Diff: samples/third_party/todomvc/web/model.dart

Issue 27618002: package:observe fix various api issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: samples/third_party/todomvc/web/model.dart
diff --git a/samples/third_party/todomvc/web/model.dart b/samples/third_party/todomvc/web/model.dart
index e648039c989f8eb5cb6ef872bf63d55197918226..2f19fcbe49064d8a243e2e303b4feeea4354119f 100644
--- a/samples/third_party/todomvc/web/model.dart
+++ b/samples/third_party/todomvc/web/model.dart
@@ -9,7 +9,7 @@ import 'package:polymer/polymer.dart';
final appModel = new AppModel._();
@reflectable
-class AppModel extends ObservableBase {
+class AppModel extends Observable {
final ObservableList<Todo> todos = new ObservableList<Todo>();
@observable int doneCount;
@observable int remaining;
@@ -59,7 +59,7 @@ class AppModel extends ObservableBase {
void clearDone() => todos.removeWhere((t) => t.done);
}
-class Todo extends ObservableBase {
+class Todo extends Observable {
@observable String task;
@observable bool done = false;
« no previous file with comments | « samples/survey/web/elements/survey/survey_element.dart ('k') | samples/third_party/todomvc/web/todo_row.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698