| Index: samples/third_party/todomvc_performance/web/lib-elements/simple_router.dart
|
| diff --git a/samples/third_party/todomvc_performance/web/lib-elements/simple_router.dart b/samples/third_party/todomvc_performance/web/lib-elements/simple_router.dart
|
| index 9e672db9b144f0c5bf4303632e158cc3af3d89a3..1337a262f6f04b5dedd65b7d8b9c9d44d739dc0c 100644
|
| --- a/samples/third_party/todomvc_performance/web/lib-elements/simple_router.dart
|
| +++ b/samples/third_party/todomvc_performance/web/lib-elements/simple_router.dart
|
| @@ -18,7 +18,8 @@ class SimpleRouter extends PolymerElement {
|
| factory SimpleRouter() => new Element.tag('simple-router');
|
| SimpleRouter.created() : super.created();
|
|
|
| - enteredView() {
|
| + attached() {
|
| + super.attached();
|
| _sub = windowLocation.changes.listen((_) {
|
| var hash = window.location.hash;
|
| if (hash.startsWith('#/')) hash = hash.substring(2);
|
| @@ -29,7 +30,8 @@ class SimpleRouter extends PolymerElement {
|
| });
|
| }
|
|
|
| - leftView() {
|
| + detached() {
|
| + super.detached();
|
| _sub.cancel();
|
| }
|
|
|
|
|