Index: tools/dom/src/WrappedList.dart |
diff --git a/tools/dom/src/WrappedList.dart b/tools/dom/src/WrappedList.dart |
index b099526a9bb8c2d2ad1f389768b2cc52ccfffcc3..eb255ce5a5e84cc70588e9aa58bb25f3e48a6387 100644 |
--- a/tools/dom/src/WrappedList.dart |
+++ b/tools/dom/src/WrappedList.dart |
@@ -115,7 +115,9 @@ class _WrappedList<E> implements List<E> { |
E removeLast() => _list.removeLast(); |
- List<E> getRange(int start, int length) => _list.getRange(start, length); |
+ List<E> sublist(int start, [int end]) => _list.sublist(start, end); |
+ |
+ List<E> getRange(int start, int length) => sublist(start, start + length); |
void setRange(int start, int length, List<E> from, [int startFrom]) { |
_list.setRange(start, length, from, startFrom); |