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

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

Issue 15819003: Modernizing HttpRequest documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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:
View side-by-side diff with in-line comments
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 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
« 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