Index: tools/dom/src/_HttpRequestUtils.dart |
diff --git a/tools/dom/src/_HttpRequestUtils.dart b/tools/dom/src/_HttpRequestUtils.dart |
index 7ebd01f56ae4a8e3e682bf0762b23a84a3889684..352ddfc86d91d00ef03ea93d0333c627567c8964 100644 |
--- a/tools/dom/src/_HttpRequestUtils.dart |
+++ b/tools/dom/src/_HttpRequestUtils.dart |
@@ -15,7 +15,7 @@ class _HttpRequestUtils { |
request.withCredentials = withCredentials; |
- request.on.readyStateChange.add((e) { |
+ request.onReadyStateChange.listen((e) { |
if (request.readyState == HttpRequest.DONE) { |
onComplete(request); |
} |