| 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 8e53e7f629d98f916416c081689046b6d808a342..865a38c56bd84f5564683843b7b442483f859f79 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -11415,12 +11415,12 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
|
| *
|
| * var request = new HttpRequest();
|
| * request.open('GET', 'http://dartlang.org')
|
| - * request.on.load.add((event) => print('Request complete'));
|
| + * request.onLoad.add((event) => print('Request complete'));
|
| *
|
| * is the (more verbose) equivalent of
|
| *
|
| - * var request = new HttpRequest.get('http://dartlang.org',
|
| - * (event) => print('Request complete'));
|
| + * HttpRequest.getString('http://dartlang.org').then(
|
| + * (result) => print('Request complete: $result'));
|
| */
|
| @DomName('XMLHttpRequest.XMLHttpRequest')
|
| @DocsEditable
|
|
|