thenikso / angular-flexslider

AngularJS directive to use Woothemes' FlexSlider jQuery plugin.
MIT License
189 stars 100 forks source link

Update removeSlide in $watchCollection to use oldCollection, rather than the new collection #63

Open adambarthelson opened 9 years ago

adambarthelson commented 9 years ago

After running into the same issue mentioned in https://github.com/thenikso/angular-flexslider/issues/53, I found the fix in my case was to make sure we're checking the old collection of slides for the element to the remove. When using the new collection, the value was no longer present, causing the error.