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

Side by Side Diff: sdk/lib/html/html_common/filtered_element_list.dart

Issue 12087103: Revert "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of html_common; 5 part of html_common;
6 6
7 /** 7 /**
8 * An indexable collection of a node's descendants in the document tree, 8 * An indexable collection of a node's descendants in the document tree,
9 * filtered so that only elements are in the collection. 9 * filtered so that only elements are in the collection.
10 */ 10 */
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 Element removeLast() { 96 Element removeLast() {
97 final result = this.last; 97 final result = this.last;
98 if (result != null) { 98 if (result != null) {
99 result.remove(); 99 result.remove();
100 } 100 }
101 return result; 101 return result;
102 } 102 }
103 103
104 Iterable map(f(Element element)) => _filtered.map(f); 104 Iterable mappedBy(f(Element element)) => _filtered.mappedBy(f);
105 List mappedBy(f(Element element)) => _filtered.mappedBy(f);
106 Iterable<Element> where(bool f(Element element)) => _filtered.where(f); 105 Iterable<Element> where(bool f(Element element)) => _filtered.where(f);
107 106
108 Element removeAt(int index) { 107 Element removeAt(int index) {
109 final result = this[index]; 108 final result = this[index];
110 result.remove(); 109 result.remove();
111 return result; 110 return result;
112 } 111 }
113 112
114 void remove(Object element) { 113 void remove(Object element) {
115 if (element is! Element) return; 114 if (element is! Element) return;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 Element get first => _filtered.first; 197 Element get first => _filtered.first;
199 198
200 Element get last => _filtered.last; 199 Element get last => _filtered.last;
201 200
202 Element get single => _filtered.single; 201 Element get single => _filtered.single;
203 202
204 Element min([int compare(Element a, Element b)]) => _filtered.min(compare); 203 Element min([int compare(Element a, Element b)]) => _filtered.min(compare);
205 204
206 Element max([int compare(Element a, Element b)]) => _filtered.max(compare); 205 Element max([int compare(Element a, Element b)]) => _filtered.max(compare);
207 } 206 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698