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

Commit d9e3dd5

Browse files
committed
chore(carousel): combine animation check
- Combine animation check since $animate.enabled value is set in the $watcher Closes #4976
1 parent 19b7e3e commit d9e3dd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/carousel/carousel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ angular.module('ui.bootstrap.carousel', [])
2828

2929
angular.extend(slide, {direction: direction, active: true});
3030
angular.extend(self.currentSlide || {}, {direction: direction, active: false});
31-
if ($animate.enabled() && !$scope.noTransition && !$scope.$currentTransition &&
31+
if ($animate.enabled($element) && !$scope.$currentTransition &&
3232
slide.$element && self.slides.length > 1) {
3333
slide.$element.data(SLIDE_DIRECTION, slide.direction);
3434
if (self.currentSlide && self.currentSlide.$element) {

0 commit comments

Comments
 (0)