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

Unified Diff: tools/dom/docs/docs.json

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 | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/dom.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/docs.json
diff --git a/tools/dom/docs/docs.json b/tools/dom/docs/docs.json
index 4a34c777ab6b95a9ce4562ecf0e014c98d7693d7..3ba329e32f6983d964c100deb1caf9b0a50a70b6 100644
--- a/tools/dom/docs/docs.json
+++ b/tools/dom/docs/docs.json
@@ -590,12 +590,12 @@
" *",
" * 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'));",
" */"
]
}
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tools/dom/dom.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698