I did not verify closely, but I think this part of code is wrong in case an element is removed from the collecition:
103 e = removeSlide(e, collection.indexOf(e));
Should 'collection" be "oldCollection"? as the element e already removed from the new collection, so collection.indexOf(e) alway return -1. what's the point.
I did not verify closely, but I think this part of code is wrong in case an element is removed from the collecition:
103 e = removeSlide(e, collection.indexOf(e));
Should 'collection" be "oldCollection"? as the element
ealready removed from the new collection, socollection.indexOf(e)alway return -1. what's the point.