@@ -474,7 +474,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
474
474
475
475
if ( ! isValidAnimation ) {
476
476
close ( ) ;
477
- clearElementAnimationState ( element ) ;
477
+ clearElementAnimationState ( node ) ;
478
478
return runner ;
479
479
}
480
480
@@ -523,7 +523,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
523
523
// isn't allowed to animate from here then we need to clear the state of the element
524
524
// so that any future animations won't read the expired animation data.
525
525
if ( ! isValidAnimation ) {
526
- clearElementAnimationState ( element ) ;
526
+ clearElementAnimationState ( node ) ;
527
527
}
528
528
529
529
return ;
@@ -547,7 +547,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
547
547
close ( ! status ) ;
548
548
var animationDetails = activeAnimationsLookup . get ( node ) ;
549
549
if ( animationDetails && animationDetails . counter === counter ) {
550
- clearElementAnimationState ( getDomNode ( element ) ) ;
550
+ clearElementAnimationState ( node ) ;
551
551
}
552
552
notifyProgress ( runner , event , 'close' , { } ) ;
553
553
} ) ;
@@ -603,8 +603,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
603
603
} ) ;
604
604
}
605
605
606
- function clearElementAnimationState ( element ) {
607
- var node = getDomNode ( element ) ;
606
+ function clearElementAnimationState ( node ) {
608
607
node . removeAttribute ( NG_ANIMATE_ATTR_NAME ) ;
609
608
activeAnimationsLookup . remove ( node ) ;
610
609
}
0 commit comments