Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(ngAnimate): $timeout without invokeApply
This change calls $timeout with the invokeApply
parameter set to false which stops ngAnimate
from invoking its changes inside an $apply block

Closes #12281
Closes #12282
  • Loading branch information
startswithaj authored and matsko committed Jul 16, 2015
1 parent d494a69 commit 7db5f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngAnimate/animateCss.js
Expand Up @@ -924,7 +924,7 @@ var $AnimateCssProvider = ['$animateProvider', function($animateProvider) {

startTime = Date.now();
element.on(events.join(' '), onAnimationProgress);
$timeout(onAnimationExpired, maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime);
$timeout(onAnimationExpired, maxDelayTime + CLOSING_TIME_BUFFER * maxDurationTime, false);

applyAnimationToStyles(element, options);
}
Expand Down

0 comments on commit 7db5f36

Please sign in to comment.