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

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

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 years, 11 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/src/CssClassSet.dart
diff --git a/tools/dom/src/CssClassSet.dart b/tools/dom/src/CssClassSet.dart
index 2c875b0d087fd951f7adc24deb7ecfe3422d5813..c688181cf5597df75153586c860624db48681b39 100644
--- a/tools/dom/src/CssClassSet.dart
+++ b/tools/dom/src/CssClassSet.dart
@@ -44,6 +44,8 @@ abstract class CssClassSet implements Set<String> {
String join([String separator]) => readClasses().join(separator);
+ Iterable map(f(String element)) => readClasses().map(f);
+
Iterable mappedBy(f(String element)) => readClasses().mappedBy(f);
Iterable<String> where(bool f(String element)) => readClasses().where(f);
@@ -141,7 +143,7 @@ abstract class CssClassSet implements Set<String> {
* Helper method used to modify the set of css classes on this element.
*
* f - callback with:
- * s - a Set of all the css class name currently on this element.
+ * s - a Set of all the css class name currently on this element.
*
* After f returns, the modified set is written to the
* className property of this element.
« no previous file with comments | « tests/lib/async/stream_from_iterable_test.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698