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

Unified Diff: lib/observe_html.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 years, 4 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 | « lib/observe.dart ('k') | lib/polymer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/observe_html.dart
diff --git a/lib/observe_html.dart b/lib/observe_html.dart
index bae2fb2d85c5882fc3995c75b653e84d74438920..7280b0e4434d11b48d66045353b86721f1e26a99 100644
--- a/lib/observe_html.dart
+++ b/lib/observe_html.dart
@@ -32,14 +32,14 @@ class ObservableLocationHash extends ChangeNotifierBase {
* Pushes a new URL state, similar to the affect of clicking a link.
* Has no effect if the [value] already equals [window.location.hash].
*/
- set hash(String value) {
+ void set hash(String value) {
if (value == hash) return;
window.history.pushState(null, '', value);
_notifyHashChange(null);
}
- _notifyHashChange(_) {
+ void _notifyHashChange(_) {
notifyChange(new PropertyChangeRecord(const Symbol('hash')));
}
}
« no previous file with comments | « lib/observe.dart ('k') | lib/polymer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698