This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 4 files changed +20
-0
lines changed
4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ var angularFiles = {
88
88
'angularModules' : {
89
89
'ngAnimate' : [
90
90
'src/ngAnimate/shared.js' ,
91
+ 'src/ngAnimate/body.js' ,
91
92
'src/ngAnimate/rafScheduler.js' ,
92
93
'src/ngAnimate/animateChildrenDirective.js' ,
93
94
'src/ngAnimate/animateCss.js' ,
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ function $$BodyProvider ( ) {
4
+ this . $get = [ '$document' , function ( $document ) {
5
+ return jqLite ( $document [ 0 ] . body ) ;
6
+ } ] ;
7
+ }
Original file line number Diff line number Diff line change 2
2
3
3
/* global angularAnimateModule: true,
4
4
5
+ $$BodyProvider,
5
6
$$rAFMutexFactory,
6
7
$$rAFSchedulerFactory,
7
8
$$AnimateChildrenDirective,
741
742
* Click here {@link ng.$animate $animate to learn more about animations with `$animate`}.
742
743
*/
743
744
angular . module ( 'ngAnimate' , [ ] )
745
+ . provider ( '$$body' , $$BodyProvider )
746
+
744
747
. directive ( 'ngAnimateChildren' , $$AnimateChildrenDirective )
745
748
746
749
. factory ( '$$rAFMutex' , $$rAFMutexFactory )
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ describe ( '$$body' , function ( ) {
4
+ beforeEach ( module ( 'ngAnimate' ) ) ;
5
+
6
+ it ( "should inject $document" , inject ( function ( $$body , $document ) {
7
+ expect ( $$body ) . toEqual ( jqLite ( $document [ 0 ] . body ) ) ;
8
+ } ) ) ;
9
+ } ) ;
You can’t perform that action at this time.
0 commit comments