diff --git a/src/collapse/collapse.js b/src/collapse/collapse.js index 1b0044c35a..669cd7e812 100644 --- a/src/collapse/collapse.js +++ b/src/collapse/collapse.js @@ -15,7 +15,7 @@ angular.module('ui.bootstrap.collapse', []) addClass: 'in', easing: 'ease', to: { height: element[0].scrollHeight + 'px' } - }).start().done(expandDone); + }).start().finally(expandDone); } else { $animate.addClass(element, 'in', { to: { height: element[0].scrollHeight + 'px' } @@ -50,7 +50,7 @@ angular.module('ui.bootstrap.collapse', []) $animateCss(element, { removeClass: 'in', to: {height: '0'} - }).start().done(collapseDone); + }).start().finally(collapseDone); } else { $animate.removeClass(element, 'in', { to: {height: '0'}