| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 0f07ca96b9208a8af3a36809553888bb23cf3d9d..edf1fe7a485bcbe2bf884b5f0e566a7f71056348 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -13116,8 +13116,9 @@ class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollectio
|
| * wish to retrieve the HTML of the top-level page and print it out.
|
| * The easiest way to do that would be:
|
| *
|
| - * var httpRequest = HttpRequest.get('http://api.dartlang.org',
|
| - * (request) => print(request.responseText));
|
| + * HttpRequest.getString('http://api.dartlang.org').then((response) {
|
| + * print(response);
|
| + * });
|
| *
|
| * **Important**: With the default behavior of this class, your
|
| * code making the request should be served from the same origin (domain name,
|
|
|