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

Unified Diff: pkg/observe/lib/html.dart

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment Created 7 years, 2 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
Index: pkg/observe/lib/html.dart
diff --git a/pkg/observe/lib/html.dart b/pkg/observe/lib/html.dart
index aa65d02ba065eb70fb415fbd41bafe0df9f9a8be..4ba0154085c9707ee8f6fcdac9b6b9981e1ac483 100644
--- a/pkg/observe/lib/html.dart
+++ b/pkg/observe/lib/html.dart
@@ -27,13 +27,13 @@ class ObservableLocationHash extends ChangeNotifierBase {
window.onPopState.listen(_notifyHashChange);
}
- String get hash => window.location.hash;
+ @reflectable String get hash => window.location.hash;
/**
* Pushes a new URL state, similar to the affect of clicking a link.
* Has no effect if the [value] already equals [window.location.hash].
*/
- void set hash(String value) {
+ @reflectable void set hash(String value) {
if (value == hash) return;
window.history.pushState(null, '', value);

Powered by Google App Engine
This is Rietveld 408576698