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

Unified Diff: samples/swarm/UIState.dart

Issue 10544076: Changes to run Swarm from the Editor and to suppress warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up a constructor Created 8 years, 6 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 | « samples/swarm/SwarmViews.dart ('k') | samples/ui_lib/view/view.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/UIState.dart
diff --git a/samples/swarm/UIState.dart b/samples/swarm/UIState.dart
index 731615783166c4ac403fb461b36829053af5de05..b5a7c0acb63fee48aa693213e6961e02116d1f41 100644
--- a/samples/swarm/UIState.dart
+++ b/samples/swarm/UIState.dart
@@ -58,7 +58,7 @@ class UIState {
// TODO(jmesserly): [state] should be an Object, and we should pass it to
// the state parameter instead of as a #hash URL. Right now we're working
// around b/4582542.
- window.history.pushState(null, document.title, '#' + state);
+ window.history.pushState(null, '${document.title}#$state');
}
/**
« no previous file with comments | « samples/swarm/SwarmViews.dart ('k') | samples/ui_lib/view/view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698