@@ -66,9 +66,9 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
66
66
return ( nO . addClass && nO . addClass === cO . removeClass ) || ( nO . removeClass && nO . removeClass === cO . addClass ) ;
67
67
} ) ;
68
68
69
- this . $get = [ '$$rAF' , '$rootScope' , '$rootElement' , '$document' , '$$HashMap' ,
69
+ this . $get = [ '$$rAF' , '$rootScope' , '$rootElement' , '$document' , '$body' , '$ $HashMap',
70
70
'$$animation' , '$$AnimateRunner' , '$templateRequest' , '$$jqLite' ,
71
- function ( $$rAF , $rootScope , $rootElement , $document , $$HashMap ,
71
+ function ( $$rAF , $rootScope , $rootElement , $document , $body , $ $HashMap,
72
72
$$animation , $$AnimateRunner , $templateRequest , $$jqLite ) {
73
73
74
74
var activeAnimationsLookup = new $$HashMap ( ) ;
@@ -105,8 +105,6 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
105
105
}
106
106
) ;
107
107
108
- var bodyElement = jqLite ( $document [ 0 ] . body ) ;
109
-
110
108
var callbackRegistry = { } ;
111
109
112
110
// remember that the classNameFilter is set during the provider/config
@@ -580,7 +578,7 @@ var $$AnimateQueueProvider = ['$animateProvider', function($animateProvider) {
580
578
if ( ! bodyElementDetected ) {
581
579
// we also need to ensure that the element is or will be apart of the body element
582
580
// otherwise it is pointless to even issue an animation to be rendered
583
- bodyElementDetected = isMatchingElement ( parentElement , bodyElement ) ;
581
+ bodyElementDetected = isMatchingElement ( parentElement , $body ) ;
584
582
}
585
583
586
584
parentElement = parentElement . parent ( ) ;
0 commit comments