diff --git a/.gitignore b/.gitignore index f20a0d08751eb..3ab3a44931d94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Don’t commit the following directories created by pub. .pub +.dart_tool/ build/ packages .packages diff --git a/CHANGELOG.md b/CHANGELOG.md index 029212352279c..25215a12b890e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,17 @@ +## 0.13.3 + + * Update the signatures of `FilteredElementList.indexOf` and + `FilteredElementList.lastIndexOf` to include type annotations. + ## 0.13.2+2 -* Update signature for implementations of `Iterable.singleWhere` to include - optional argument. - + * Update signature for implementations of `Iterable.singleWhere` to include + optional argument. + ## 0.13.2+1 -* Changed the implementation of `Set` and `List` classes to use base classes - from `dart:collection`. + * Changed the implementation of `Set` and `List` classes to use base classes + from `dart:collection`. ## 0.13.2 diff --git a/lib/dom.dart b/lib/dom.dart index df9655e170d5a..2e57f64763749 100644 --- a/lib/dom.dart +++ b/lib/dom.dart @@ -969,11 +969,12 @@ class FilteredElementList extends IterableBase _filtered.getRange(start, end); // TODO(sigmund): this should be typed Element, but we currently run into a // bug where ListMixin.indexOf() expects Object as the argument. - int indexOf(element, [int start = 0]) => _filtered.indexOf(element, start); + int indexOf(Object element, [int start = 0]) => + _filtered.indexOf(element, start); // TODO(sigmund): this should be typed Element, but we currently run into a // bug where ListMixin.lastIndexOf() expects Object as the argument. - int lastIndexOf(element, [int start]) { + int lastIndexOf(Object element, [int start]) { if (start == null) start = length - 1; return _filtered.lastIndexOf(element, start); }