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

Unified Diff: samples/swarm/UIState.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/DataSource.dart ('k') | samples/swarm/Views.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 8fc1b904911f74ff315e89e8503f99a942bdd836..b03043534857a0a7bb1080dc8a3eb0500cef5522 100644
--- a/samples/swarm/UIState.dart
+++ b/samples/swarm/UIState.dart
@@ -35,7 +35,7 @@ abstract class UIState {
// the views for this.
window.history.replaceState(null, document.title, '#');
} else if (state != '') {
- loadFromHistory(JSON.parse(state));
+ loadFromHistory(json.parse(state));
}
firstEvent = false;
});
@@ -55,7 +55,7 @@ abstract class UIState {
throw 'history tracking not started';
}
- String state = JSON.stringify(toHistory());
+ String state = json.stringify(toHistory());
// 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
« no previous file with comments | « samples/swarm/DataSource.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698