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

Unified Diff: tools/dom/templates/html/impl/impl_IDBFactory.darttemplate

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:
View side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
index e676f0cda9a0391d17e1fe9219c5a12d65becffe..c7028267e1879610d279a51e5bdc0780f551cbb7 100644
--- a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
+++ b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate
@@ -60,9 +60,7 @@ $endif
request.onSuccess.listen((e) {
completer.complete(this);
});
- request.onError.listen((e) {
- completer.completeError(e);
- });
+ request.onError.listen(completer.completeError);
return completer.future;
} catch (e, stacktrace) {
return new Future.error(e, stacktrace);
@@ -109,8 +107,6 @@ Future _completeRequest(Request request) {
request.onSuccess.listen((e) {
completer.complete(request.result);
});
- request.onError.listen((e) {
- completer.completeError(e);
- });
+ request.onError.listen(completer.completeError);
return completer.future;
}
« no previous file with comments | « tools/dom/src/EventStreamProvider.dart ('k') | tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698