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

Unified Diff: sdk/lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11299048: Revert "Add List.first." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: 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 bfe269eaf0cdbd66c352e64f2d6ead3a4396d4fa..d01680db57a0686652d1577c32c4b177eb297bb5 100644
--- a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -145,11 +145,6 @@ class _ChildrenElementList implements List {
return result;
}
- Element get first {
- return _element.$dom_firstElementChild;
- }
-
-
Element get last {
return _element.$dom_lastElementChild;
}
@@ -164,6 +159,10 @@ class _FrozenElementList implements List {
_FrozenElementList._wrap(this._nodeList);
+ Element get first {
+ return _nodeList[0];
+ }
+
bool contains(Element element) {
for (Element el in this) {
if (el == element) return true;
@@ -272,8 +271,6 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- Element get first => _nodeList.first;
-
Element get last => _nodeList.last;
}
« no previous file with comments | « sdk/lib/html/src/FilteredElementList.dart ('k') | sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698