| 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
|
|
|