@@ -482,7 +482,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
482
482
var counter = ( existingAnimation . counter || 0 ) + 1 ;
483
483
newAnimation . counter = counter ;
484
484
485
- markElementAnimationState ( element , PRE_DIGEST_STATE , newAnimation ) ;
485
+ markElementAnimationState ( node , PRE_DIGEST_STATE , newAnimation ) ;
486
486
487
487
$rootScope . $$postDigest ( function ( ) {
488
488
var animationDetails = activeAnimationsLookup . get ( node ) ;
@@ -535,7 +535,7 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
535
535
? 'setClass'
536
536
: animationDetails . event ;
537
537
538
- markElementAnimationState ( element , RUNNING_STATE ) ;
538
+ markElementAnimationState ( node , RUNNING_STATE ) ;
539
539
var realRunner = $$animation ( element , event , animationDetails . options ) ;
540
540
541
541
// this will update the runner's flow-control events based on
@@ -700,11 +700,10 @@ var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
700
700
return allowAnimation && rootNodeDetected && bodyNodeDetected ;
701
701
}
702
702
703
- function markElementAnimationState ( element , state , details ) {
703
+ function markElementAnimationState ( node , state , details ) {
704
704
details = details || { } ;
705
705
details . state = state ;
706
706
707
- var node = getDomNode ( element ) ;
708
707
node . setAttribute ( NG_ANIMATE_ATTR_NAME , state ) ;
709
708
710
709
var oldValue = activeAnimationsLookup . get ( node ) ;
0 commit comments