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

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

Issue 10905018: Add print closure. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
« lib/dom/src/Timer.dart ('K') | « lib/dom/src/Timer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/src/native_DOMImplementation.dart
diff --git a/lib/dom/src/native_DOMImplementation.dart b/lib/dom/src/native_DOMImplementation.dart
index 61f9a4b50299a661df69efc8467de21fe9f8395f..751b5c3ec00e0ae4be6ab316b09e064c493157e8 100644
--- a/lib/dom/src/native_DOMImplementation.dart
+++ b/lib/dom/src/native_DOMImplementation.dart
@@ -105,3 +105,11 @@ class _DOMStringMapImpl extends NativeFieldWrapperClass1 implements Map<String,
int get length() => Maps.length(this);
bool isEmpty() => Maps.isEmpty(this);
}
+
+get _printClosure => (s) {
+ try {
+ window.console.log(s);
+ } on Dynamic catch(_) {
+ Utils_print(s);
podivilov 2012/08/30 15:43:47 While you are here, could you please make Utils_pr
Anton Muhin 2012/08/30 16:12:28 Well spotted, absolutely, it should go into Utils
+ }
+};
« lib/dom/src/Timer.dart ('K') | « lib/dom/src/Timer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698