Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(carousel): ensure there are slides present #3788

Closed

Conversation

wesleycho
Copy link
Contributor

  • Ensure there are slides present before calling $scope.next in timer

There is a possible situation where the carousel errors when the slide count is dynamically changed to 0.

This fixes #3755.

Plunker of fix in action here.

- Ensure there are slides present before calling `$scope.next` in timer
@wesleycho wesleycho added this to the 0.13.1 (Performance) milestone Jun 10, 2015
@wesleycho
Copy link
Contributor Author

You can safely ignore the Travis error here - I mistakenly pushed to origin, and so I deleted that branch before Travis finished without realizing that it would affect this PR.

@chrisirhc
Copy link
Contributor

LGTM

@wesleycho
Copy link
Contributor Author

Doh, forgot to put closes #3788 in my cherry-picking.

@wesleycho wesleycho closed this Jun 11, 2015
@wesleycho wesleycho deleted the fix/carousel-no-slides branch August 2, 2015 07:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Carousel] TypeError: Cannot read property 'index' of undefined
2 participants