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

Commit

Permalink
fix(carousel): only apply change on completion
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Aug 4, 2015
1 parent 558780f commit 9a63703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ angular.module('ui.bootstrap.carousel', [])
$scope.$currentTransition = true;
if (ANIMATE_CSS) {
$animate.on('addClass', slide.$element, function (element, phase) {
$scope.$currentTransition = null;
if (!$scope.$currentTransition) {
if (phase === 'close') {
$scope.$currentTransition = null;
$animate.off('addClass', element);
}
});
Expand Down

0 comments on commit 9a63703

Please sign in to comment.