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

Unified Diff: sdk/lib/html/templates/html/impl/impl_NodeList.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_NodeList.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate b/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
index f54e47546e90309b218c8a0931367d75fdfae94f..95bbddcec52a3fe1bc6112c8384c5e7a77b998ee 100644
--- a/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_NodeList.darttemplate
@@ -52,8 +52,6 @@ class _ListWrapper<E> implements List<E> {
E removeLast() => _list.removeLast();
- E get first => _list.first;
-
E get last => _list.last;
List<E> getRange(int start, int rangeLength) =>
@@ -67,6 +65,8 @@ class _ListWrapper<E> implements List<E> {
void insertRange(int start, int rangeLength, [E initialValue = null]) =>
_list.insertRange(start, rangeLength, initialValue);
+
+ E get first => _list[0];
}
/**
« no previous file with comments | « sdk/lib/html/templates/html/impl/impl_Element.darttemplate ('k') | sdk/lib/html/templates/immutable_list_mixin.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698