Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_Node.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate |
| index 3e7e7890223c69afd91b2bdf64932fdd58a6dd10..2d7c53f926030a5149b31a4b0ccd84ffe809ff21 100644 |
| --- a/tools/dom/templates/html/impl/impl_Node.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_Node.darttemplate |
| @@ -138,10 +138,12 @@ $endif |
| return IterableMixinWorkaround.joinList(this, separator); |
| } |
| - List mappedBy(f(Node element)) { |
| + Iterable map(f(Node element)) { |
|
floitsch
2013/01/30 14:48:44
should return an iterable.
Lasse Reichstein Nielsen
2013/01/31 11:33:49
Done.
|
| return IterableMixinWorkaround.mappedByList(this, f); |
| } |
| + Iterable mappedBy(f(Node element)) => map(f); |
| + |
| Iterable<Node> where(bool f(Node element)) { |
| return IterableMixinWorkaround.where(this, f); |
| } |
| @@ -157,7 +159,7 @@ $endif |
| // From List<Node>: |
| - List<Node> take(int n) { |
| + Iterable<Node> take(int n) { |
| return IterableMixinWorkaround.takeList(this, n); |
| } |
| @@ -165,7 +167,7 @@ $endif |
| return IterableMixinWorkaround.takeWhile(this, test); |
| } |
| - List<Node> skip(int n) { |
| + Iterable<Node> skip(int n) { |
| return IterableMixinWorkaround.skipList(this, n); |
| } |