Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 23134003: More clean up for HttpRequest docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f083b43447529184610b33d2b28649e32676c768..b20dd2cde7f31c7808c4da229b66cad98ef232fd 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -12969,8 +12969,10 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
* This call is used in conjunction with [open]:
*
* var request = new HttpRequest();
- * request.open('GET', 'http://dartlang.org')
- * request.onLoad.listen((event) => print('Request complete'));
+ * request.open('GET', 'http://dartlang.org');
+ * request.onLoad.listen((event) => print(
+ * 'Request complete ${event.target.reponseText}'));
+ * request.send();
*
* is the (more verbose) equivalent of
*
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698