Index: tools/dom/src/WrappedList.dart |
diff --git a/tools/dom/src/WrappedList.dart b/tools/dom/src/WrappedList.dart |
index 1d7b005f9a7eeb8ccbadc0f7523387e7e39ca891..9a8367eb7f2e4bb2da88c0b4450492ac1ca929f9 100644 |
--- a/tools/dom/src/WrappedList.dart |
+++ b/tools/dom/src/WrappedList.dart |
@@ -113,7 +113,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); |