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

Unified Diff: samples/third_party/dromaeo/Dromaeo.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/tests/samples/chat/chat_server_test.dart ('k') | samples/third_party/dromaeo/Suites.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/Dromaeo.dart
diff --git a/samples/third_party/dromaeo/Dromaeo.dart b/samples/third_party/dromaeo/Dromaeo.dart
index 2c25d3243ef3d90da316a079bb6c2a25bf08b737..e9bcf4f89a2116a74f1ed54ddeb3e27e1790c6aa 100644
--- a/samples/third_party/dromaeo/Dromaeo.dart
+++ b/samples/third_party/dromaeo/Dromaeo.dart
@@ -1,5 +1,5 @@
import 'dart:html';
-import 'dart:json';
+import 'dart:json' as json;
import 'dart:math' as Math;
import 'Suites.dart';
@@ -95,7 +95,7 @@ class Dromaeo {
window.on.message.add(
(MessageEvent event) {
try {
- final response = JSON.parse(event.data);
+ final response = json.parse(event.data);
_handler = _handler(response['command'], response['data']);
} catch (e, stacktrace) {
window.alert('Exception: ${e}: ${stacktrace}');
« no previous file with comments | « samples/tests/samples/chat/chat_server_test.dart ('k') | samples/third_party/dromaeo/Suites.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698