Index: example/todomvc/router_options.html |
diff --git a/example/todomvc/router_options.html b/example/todomvc/router_options.html |
index b5fd6547da705c7f2abff6cdc1855431a88d2609..c6c8afd6ce99553ce652f147acbcf1ab0852c334 100644 |
--- a/example/todomvc/router_options.html |
+++ b/example/todomvc/router_options.html |
@@ -11,6 +11,7 @@ BSD-style license that can be found in the LICENSE file. |
<script type="application/dart"> |
import 'dart:html'; |
import 'package:web_ui/web_ui.dart'; |
+ import 'package:web_ui/observe/html.dart'; |
/** |
* Given a set of child links to this page, this will add the "selected" CSS |
@@ -29,9 +30,7 @@ BSD-style license that can be found in the LICENSE file. |
var anchors = this.queryAll('a'); |
- // TODO(jmesserly): this only works because main() registered for |
- // popState and hashChanged. |
- _stopWatcher = watchAndInvoke(() => window.location.hash, (e) { |
+ _stopWatcher = watchAndInvoke(() => locationHash, (e) { |
var hash = e.newValue; |
if (hash == '') hash = '#/'; |
for (var a in anchors) { |