Please sign in to comment.
Fix collections when iterating over certain classes
When a class that extends the base ArrayIterator class are iterated over, the collection class would replace the class with a basic array or ArrayIterator, breaking any custom logic in the original class. This fixes the issue by checking if the class is an ArrayIterator, rather than if it is simply a instance of ArrayIterator.
- Loading branch information...
Showing with 6 additions and 6 deletions.