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

Unified Diff: client/dom/generated/src/wrapping/_NodeListWrappingImplementation.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/_NodeListWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_NodeListWrappingImplementation.dart b/client/dom/generated/src/wrapping/_NodeListWrappingImplementation.dart
index 72e51b762433a77b3ffa6f95a44e1ce227c434ea..d607665e321c790947d70ab323086a2cd0b18716 100644
--- a/client/dom/generated/src/wrapping/_NodeListWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_NodeListWrappingImplementation.dart
@@ -66,6 +66,10 @@ class _NodeListWrappingImplementation extends DOMWrapperBase implements NodeList
_Collections.forEach(this, f);
}
+ Collection map(f(Node element)) {
+ return _Collections.map(this, [], f);
+ }
+
Collection<Node> filter(bool f(Node element)) {
return _Collections.filter(this, new List<Node>(), f);
}

Powered by Google App Engine
This is Rietveld 408576698