You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
In carousel.js#L76, if slides.length == 0, newIndex will be NaN.
This will cause function getSlideByIndex(index) to throw an error on L52 :
TypeError: Cannot read property 'index' of undefined
at getSlideByIndex (ui-bootstrap-tpls.js?body=1:363)
at Scope.$scope.next (ui-bootstrap-tpls.js?body=1:391)
at timerFn (ui-bootstrap-tpls.js?body=1:429)
at angular.js?body=1:13331
at Scope.$eval (angular.js?body=1:14467)
at Scope.$digest (angular.js?body=1:14283)
at Scope.$apply (angular.js?body=1:14572)
at tick (angular.js?body=1:10429)
The text was updated successfully, but these errors were encountered:
What is happening is that the carousel uses $interval to time sliding to the next slide, but if the slides disappear in the interim, then the callback fired ends up with a false assumption about the existence of an index in the slides array.
In carousel.js#L76, if slides.length == 0, newIndex will be NaN.
This will cause function getSlideByIndex(index) to throw an error on L52 :
The text was updated successfully, but these errors were encountered: