diff options
| author | Tomer Chachamu | 2014-03-04 15:29:11 +0000 |
|---|---|---|
| committer | Matias Niemelä | 2014-03-14 13:48:29 -0400 |
| commit | a41a2a1d2ce20f86ac2709592e4ada527160e580 (patch) | |
| tree | 85a813b9e319e84abca4e491114b16d25371fc97 /src | |
| parent | eadd8d08d3ae67f4f774d14aaa160fe8c69b0da5 (diff) | |
| download | angular.js-a41a2a1d2ce20f86ac2709592e4ada527160e580.tar.bz2 | |
fix(ngAnimate): setting classNameFilter disables animation inside ng-if
Closes #6539
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngAnimate/animate.js | 4 |
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() { |
