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

Unified Diff: samples/chat/dart_client/chat.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/chat/chat_stress_client.dart ('k') | samples/clock/balls.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/dart_client/chat.dart
diff --git a/samples/chat/dart_client/chat.dart b/samples/chat/dart_client/chat.dart
index d5be28b5f8cea8e5440e4f3a0a4d442900604206..84786a8ebe654586ebb694e6d7231676dc96482f 100644
--- a/samples/chat/dart_client/chat.dart
+++ b/samples/chat/dart_client/chat.dart
@@ -4,7 +4,7 @@
library chat;
import 'dart:html';
-import 'dart:json';
+import 'dart:json' as jsonlib;
void main() {
new Chat().start();
@@ -163,14 +163,14 @@ class Chat {
request.on.readyStateChange.add((Event event) {
if (request.readyState != 4) return;
if (request.status == 200) {
- onSuccess(JSON.parse(request.responseText));
+ onSuccess(jsonlib.parse(request.responseText));
} else {
onError();
}
});
request.open("POST", url, true);
request.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
- request.send(JSON.stringify(json));
+ request.send(jsonlib.stringify(json));
return request;
}
« no previous file with comments | « samples/chat/chat_stress_client.dart ('k') | samples/clock/balls.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698