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

Unified Diff: samples/tracker/lib/models.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
« no previous file with comments | « samples/third_party/todomvc/web/todo_row.dart ('k') | samples/tracker/web/task_element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/tracker/lib/models.dart
diff --git a/samples/tracker/lib/models.dart b/samples/tracker/lib/models.dart
index 33ed9a45b8d0755e09e2d9959c315073fa8dce4e..7f10b70b17dee9b4170139dd597d11e08dd9d646 100644
--- a/samples/tracker/lib/models.dart
+++ b/samples/tracker/lib/models.dart
@@ -13,7 +13,7 @@ final appModel = new Tracker();
*
* [tasks] contains all tasks used in this app.
*/
-class Tracker extends ObservableBase {
+class Tracker extends Observable {
@observable List<Task> tasks;
}
@@ -26,7 +26,7 @@ class Tracker extends ObservableBase {
* the view layer to validate a task before assigning a taskID to the task. A
* task with a taskID is considered saved.
*/
-class Task extends ObservableBase {
+class Task extends Observable {
static bool TITLE_REQUIRED = true;
static const MAX_TITLE_LENGTH = 40;
static const MAX_DESCRIPTION_LENGTH = 200;
@@ -53,4 +53,4 @@ class Task extends ObservableBase {
}
bool get saved => taskID != null;
-}
+}
« no previous file with comments | « samples/third_party/todomvc/web/todo_row.dart ('k') | samples/tracker/web/task_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698