diff --git a/src/directives/rn-carousel.js b/src/directives/rn-carousel.js index 9399643..c4e1e4b 100755 --- a/src/directives/rn-carousel.js +++ b/src/directives/rn-carousel.js @@ -374,10 +374,11 @@ if (iAttributes.rnCarouselControls!==undefined) { // dont use a directive for this + var canloop = ((isRepeatBased ? scope[repeatCollection.replace('::', '')].length : currentSlides.length) > 1) ? angular.isDefined(tAttributes['rnCarouselControlsAllowLoop']) : false; var nextSlideIndexCompareValue = isRepeatBased ? repeatCollection.replace('::', '') + '.length - 1' : currentSlides.length - 1; var tpl = '