Index: samples/chat/dart_client/chat.dart |
=================================================================== |
--- samples/chat/dart_client/chat.dart (revision 10850) |
+++ samples/chat/dart_client/chat.dart (working copy) |
@@ -158,8 +158,8 @@ |
uiJoin(); |
} |
- XMLHttpRequest sendRequest(String url, Map json, var onSuccess, var onError) { |
- XMLHttpRequest request = new XMLHttpRequest(); |
+ HttpRequest sendRequest(String url, Map json, var onSuccess, var onError) { |
+ HttpRequest request = new HttpRequest(); |
request.on.readyStateChange.add((Event event) { |
if (request.readyState != 4) return; |
if (request.status == 200) { |
@@ -310,6 +310,6 @@ |
String _session = null; |
int _nextMessage = 0; |
- XMLHttpRequest _pollRequest = null; |
+ HttpRequest _pollRequest = null; |
} |