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

Unified Diff: tools/dom/src/WrappedList.dart

Issue 14246008: Allow Object when doing lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to upload before committing Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/src/WrappedList.dart
diff --git a/tools/dom/src/WrappedList.dart b/tools/dom/src/WrappedList.dart
index b725b964abfc30e2e805e106ef1d91dc6530411a..145c9ab868d4a2289302a8c8e7f691a31656a573 100644
--- a/tools/dom/src/WrappedList.dart
+++ b/tools/dom/src/WrappedList.dart
@@ -37,9 +37,9 @@ class _WrappedList<E> extends ListBase<E> {
void sort([int compare(E a, E b)]) { _list.sort(compare); }
- int indexOf(E element, [int start = 0]) => _list.indexOf(element, start);
+ int indexOf(Object element, [int start = 0]) => _list.indexOf(element, start);
- int lastIndexOf(E element, [int start]) => _list.lastIndexOf(element, start);
+ int lastIndexOf(Object element, [int start]) => _list.lastIndexOf(element, start);
void insert(int index, E element) => _list.insert(index, element);
« no previous file with comments | « tests/lib/async/stream_last_where_test.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698