aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomer Chachamu2014-03-04 15:29:11 +0000
committerMatias Niemelä2014-03-14 12:40:40 -0400
commit129e2e021ab1d773874428cd1fb329eae72797c4 (patch)
tree3c4d6640698d27032423df5a9535205f434c4be7 /src
parent3cc02e7f03787a9f41e493f3ca539190946933b0 (diff)
downloadangular.js-129e2e021ab1d773874428cd1fb329eae72797c4.tar.bz2
fix(ngAnimate): setting classNameFilter disables animation inside ng-if
Closes #6539
Diffstat (limited to 'src')
-rw-r--r--src/ngAnimate/animate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js
index 447dfa3a..542b678f 100644
--- a/src/ngAnimate/animate.js
+++ b/src/ngAnimate/animate.js
@@ -770,7 +770,7 @@ angular.module('ngAnimate', ['ng'])
fireDOMOperation();
fireBeforeCallbackAsync();
fireAfterCallbackAsync();
- fireDoneCallbackAsync();
+ closeAnimation();
return;
}
@@ -949,7 +949,7 @@ angular.module('ngAnimate', ['ng'])
animation, but class-based animations don't. An example of this
failing would be when a parent HTML tag has a ng-class attribute
causing ALL directives below to skip animations during the digest */
- if(runner.isClassBased) {
+ if(runner && runner.isClassBased) {
cleanup(element, className);
} else {
$$asyncCallback(function() {