File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ var angularFiles = {
8888 'angularModules' : {
8989 'ngAnimate' : [
9090 'src/ngAnimate/shared.js' ,
91+ 'src/ngAnimate/body.js' ,
9192 'src/ngAnimate/rafScheduler.js' ,
9293 'src/ngAnimate/animateChildrenDirective.js' ,
9394 '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 22
33/* global angularAnimateModule: true,
44
5+ $$BodyProvider,
56 $$rAFMutexFactory,
67 $$rAFSchedulerFactory,
78 $$AnimateChildrenDirective,
741742 * Click here {@link ng.$animate $animate to learn more about animations with `$animate`}.
742743 */
743744angular . module ( 'ngAnimate' , [ ] )
745+ . provider ( '$$body' , $$BodyProvider )
746+
744747 . directive ( 'ngAnimateChildren' , $$AnimateChildrenDirective )
745748
746749 . 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