From 2a63dfa6cc7889888f4296fff2944e74ff30b3af Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Tue, 1 Oct 2013 14:12:19 -0400 Subject: fix($animator): avoid completing the animation asynchronously unless CSS transtiions/animations are present Closes #4023 Closes #3940 --- src/ngAnimate/animate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index 44b94563..7fcdef73 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -481,7 +481,7 @@ angular.module('ngAnimate', ['ng']) //avoid calling done() since there is no need to remove any //data or className values since this happens earlier than that //and also use a timeout so that it won't be asynchronous - $timeout(onComplete || noop, 0, false); + onComplete && onComplete(); return; } -- cgit v1.2.3