File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,16 @@ angular.module('cfp.loadingBar', [])
204
204
205
205
$rootScope . $broadcast ( 'cfpLoadingBar:started' ) ;
206
206
started = true ;
207
+
208
+ var $children = $parent . children ( ) ;
207
209
208
210
if ( includeBar ) {
209
- $animate . enter ( loadingBarContainer , $parent , $parent . children ( ) . length > 0 ? $parent . children ( ) . last ( ) : null ) ;
211
+
212
+ $animate . enter ( loadingBarContainer , $parent , $children . length > 0 ? $children [ $children . length - 1 ] : null ) ;
210
213
}
211
214
212
215
if ( includeSpinner ) {
213
- $animate . enter ( spinner , $parent , $parent . children ( ) . length > 0 ? $parent . children ( ) . last ( ) : null ) ;
216
+ $animate . enter ( spinner , $parent , $children . length > 0 ? $children [ $children . length - 1 ] : null ) ;
214
217
}
215
218
216
219
_set ( startSize ) ;
You can’t perform that action at this time.
0 commit comments