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

Unified Diff: client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart

Issue 9114026: Add map to dart:dom collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 12 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: client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart b/client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart
index ca3b858dc1a5544d00b0d6bcccb6e2f0c1980333..c57f29ed2638b0d4f87e1f385c88f9ccdaf7f205 100644
--- a/client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart
@@ -72,6 +72,10 @@ class _MediaListWrappingImplementation extends DOMWrapperBase implements MediaLi
_Collections.forEach(this, f);
}
+ Collection map(f(String element)) {
+ return _Collections.map(this, [], f);
+ }
+
Collection<String> filter(bool f(String element)) {
return _Collections.filter(this, new List<String>(), f);
}

Powered by Google App Engine
This is Rietveld 408576698