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

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 27036002: Update dom streams with new signatures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 c08daed3ed8ce5096e3619f781dee9100f0f592e..d521e63d3bf8740f857a2dbe01c1438b7941b4c0 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -13274,9 +13274,7 @@ class HttpRequest extends XmlHttpRequestEventTarget native "XMLHttpRequest" {
}
});
- xhr.onError.listen((e) {
- completer.completeError(e);
- });
+ xhr.onError.listen(completer.completeError);
if (sendData != null) {
xhr.send(sendData);
@@ -29083,7 +29081,7 @@ class _EventStream<T extends Event> extends Stream<T> {
bool get isBroadcast => true;
StreamSubscription<T> listen(void onData(T event),
- { void onError(error),
+ { Function onError,
void onDone(),
bool cancelOnError}) {
@@ -29146,7 +29144,7 @@ class _ElementListEventStreamImpl<T extends Event> extends Stream<T>
// Delegate all regular Stream behavor to our wrapped Stream.
StreamSubscription<T> listen(void onData(T event),
- { void onError(error),
+ { Function onError,
void onDone(),
bool cancelOnError}) =>
_stream.listen(onData, onError: onError, onDone: onDone,
@@ -29182,7 +29180,7 @@ class _CustomEventStreamImpl<T extends Event> extends Stream<T>
// Delegate all regular Stream behavior to our wrapped Stream.
StreamSubscription<T> listen(void onData(T event),
- { void onError(error),
+ { Function onError,
void onDone(),
bool cancelOnError}) {
return _streamController.stream.listen(onData, onError: onError,
@@ -29311,7 +29309,7 @@ class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> {
}
/// Has no effect.
- void onError(void handleError(error)) {}
+ void onError(Function handleError) {}
/// Has no effect.
void onDone(void handleDone()) {}
« 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