From afcff49030a6d30dc1e4ad593c6694d41ed982dd Mon Sep 17 00:00:00 2001 From: Kasper Lund Date: Tue, 11 Feb 2014 09:54:32 +0100 Subject: [PATCH 1/2] chore(cleanup_todo): Clean-up the TODO sample. --- demo/todo/pubspec.lock | 10 +++++----- demo/todo/web/main.dart | 9 ++++----- demo/todo/web/todo.dart | 8 -------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/demo/todo/pubspec.lock b/demo/todo/pubspec.lock index dca084f5b..927673dc7 100644 --- a/demo/todo/pubspec.lock +++ b/demo/todo/pubspec.lock @@ -10,7 +10,7 @@ packages: path: "../.." relative: true source: path - version: "0.9.4" + version: "0.9.7" args: description: args source: hosted @@ -50,11 +50,11 @@ packages: route_hierarchical: description: route_hierarchical source: hosted - version: "0.4.10" + version: "0.4.13" shadow_dom: description: shadow_dom source: hosted - version: "0.9.1" + version: "0.9.2" source_maps: description: source_maps source: hosted @@ -66,11 +66,11 @@ packages: unittest: description: unittest source: hosted - version: "0.9.3" + version: "0.10.0" unmodifiable_collection: description: unmodifiable_collection source: hosted - version: "0.9.2" + version: "0.9.2+1" utf: description: utf source: hosted diff --git a/demo/todo/web/main.dart b/demo/todo/web/main.dart index 5c67d8084..782430d60 100644 --- a/demo/todo/web/main.dart +++ b/demo/todo/web/main.dart @@ -7,16 +7,15 @@ import 'dart:html'; // Everything in the 'todo' library should be preserved by MirrorsUsed @MirrorsUsed( - targets: const['todo'], + targets: const ['todo'], override: '*') import 'dart:mirrors'; main() { - print(window.location.search); var module = new Module() - ..type(TodoController) - ..type(PlaybackHttpBackendConfig); + ..type(TodoController) + ..type(PlaybackHttpBackendConfig); // If these is a query in the URL, use the server-backed // TodoController. Otherwise, use the stored-data controller. @@ -39,5 +38,5 @@ main() { module.type(HttpBackend, implementedBy: PlaybackHttpBackend); } - ngBootstrap(module:module); + ngBootstrap(module: module); } diff --git a/demo/todo/web/todo.dart b/demo/todo/web/todo.dart index d287be25c..6b535f93c 100644 --- a/demo/todo/web/todo.dart +++ b/demo/todo/web/todo.dart @@ -68,14 +68,6 @@ class TodoController { serverController.init(this); } - // workaround for https://github.com/angular/angular.dart/issues/37 - dynamic operator [](String key) { - if (key == 'newItem') { - return newItem; - } - return null; - } - add() { if (newItem.isEmpty) return; From fd702a90b922719166d966d58a429b80bcbee27a Mon Sep 17 00:00:00 2001 From: Kasper Lund Date: Tue, 11 Feb 2014 10:06:35 +0100 Subject: [PATCH 2/2] Terminate comment with period. --- demo/todo/web/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/todo/web/main.dart b/demo/todo/web/main.dart index 782430d60..3f34f0a85 100644 --- a/demo/todo/web/main.dart +++ b/demo/todo/web/main.dart @@ -5,7 +5,7 @@ import 'todo.dart'; import 'dart:html'; -// Everything in the 'todo' library should be preserved by MirrorsUsed +// Everything in the 'todo' library should be preserved by MirrorsUsed. @MirrorsUsed( targets: const ['todo'], override: '*')