benjamincharity / angular-flickity

👆 An AngularJS wrapper for Flickity (Touch, responsive, flickable carousels)
Other
33 stars 23 forks source link

Timeout delay before the destroy event is too long #40

Closed benjamincharity closed 8 years ago

benjamincharity commented 8 years ago

When using the Flickity service to create an instance inside a UI-Router view's controller, we also need to be destroying it using the $destroy event. The long $timeout delay in FlickityService.destroy() causes issues if switching quickly between pages. This should be ~10x shorter.

benjamincharity commented 8 years ago

Closed by: https://github.com/benjamincharity/angular-flickity/pull/42