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

Unified Diff: tools/dom/src/native_DOMImplementation.dart

Issue 312653004: Use a proper closure instead of a 'close your eyes' style closure (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « tools/dom/src/html_native_DOMImplementation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/native_DOMImplementation.dart
===================================================================
--- tools/dom/src/native_DOMImplementation.dart (revision 36929)
+++ tools/dom/src/native_DOMImplementation.dart (working copy)
@@ -499,7 +499,7 @@
}
}
-final _printClosure = window.console.log;
+final _printClosure = (s) => window.console.log(s);
final _pureIsolatePrintClosure = (s) {
throw new UnimplementedError("Printing from a background isolate "
"is not supported in the browser");
« no previous file with comments | « tools/dom/src/html_native_DOMImplementation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698