| Index: sdk/lib/html/templates/html/impl/impl_Element.darttemplate
|
| diff --git a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
|
| index 5700dfd5308fd5931a2776f29f1eda401495a122..27bdd8672ace146d6706e3c41575ab05a765c55e 100644
|
| --- a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
|
| +++ b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
|
| @@ -59,12 +59,8 @@ class _ChildrenElementList implements List {
|
| return false;
|
| }
|
|
|
| - Collection mappedBy(f(Element element)) {
|
| - final out = [];
|
| - for (Element el in this) {
|
| - out.add(f(el));
|
| - }
|
| - return out;
|
| + Iterable mappedBy(f(Element element)) {
|
| + return new MappedIterable<Element, dynamic>(this, f);
|
| }
|
|
|
| bool get isEmpty {
|
| @@ -176,12 +172,8 @@ class _FrozenElementList implements List {
|
| }
|
| }
|
|
|
| - Collection mappedBy(f(Element element)) {
|
| - final out = [];
|
| - for (Element el in this) {
|
| - out.add(f(el));
|
| - }
|
| - return out;
|
| + Iterable mappedBy(f(Element element)) {
|
| + return new MappedIterable<Element, dynamic>(this, f);
|
| }
|
|
|
| List<Element> where(bool f(Element element)) {
|
|
|