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

Unified Diff: example/todomvc/main.dart

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 years, 10 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 | « example/todomvc/editable_label.html ('k') | example/todomvc/model.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: example/todomvc/main.dart
diff --git a/example/todomvc/main.dart b/example/todomvc/main.dart
index 75d8d189b47cc620889bfe8ac72060148fe475be..d05caad153f52a3e65f4027bd463e833cf0b2604 100644
--- a/example/todomvc/main.dart
+++ b/example/todomvc/main.dart
@@ -8,19 +8,7 @@ import 'dart:html';
import 'model.dart';
import 'package:web_ui/web_ui.dart';
-main() {
- // listen on changes to #hash in the URL
- // Note: listen on both popState and hashChange, because IE9 doens't support
- // history API, and it doesn't work properly on Opera 12.
- // See http://dartbug.com/5483
- updateFilters(e) {
- viewModel.showIncomplete = window.location.hash != '#/completed';
- viewModel.showDone = window.location.hash != '#/active';
- dispatch();
- }
- window.onHashChange.listen(updateFilters);
- window.onPopState.listen(updateFilters);
-}
+main() {}
void addTodo(Event e) {
e.preventDefault(); // don't submit the form
« no previous file with comments | « example/todomvc/editable_label.html ('k') | example/todomvc/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698