| Index: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
|
| index eb6f2a943d8f0112772b3895649b0cefa602a03f..5e0f8b814b04da090af018d4334e7cb6ca019f83 100644
|
| --- a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
|
| @@ -14,8 +14,9 @@ part of $LIBRARYNAME;
|
| * 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,
|
|
|