File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,12 @@ export class MdDialog {
64
64
closeAll ( ) : void {
65
65
let i = this . _openDialogs . length ;
66
66
67
- if ( i > 0 ) {
68
- while ( i -- ) {
69
- // The `_openDialogs` property isn't updated after close until the rxjs subscription
70
- // runs on the next microtask, in addition to modifying the array as we're going
71
- // through it. We loop through all of them and call close without assuming that
72
- // they'll be removed from the list instantaneously.
73
- this . _openDialogs [ i ] . close ( ) ;
74
- }
67
+ while ( i -- ) {
68
+ // The `_openDialogs` property isn't updated after close until the rxjs subscription
69
+ // runs on the next microtask, in addition to modifying the array as we're going
70
+ // through it. We loop through all of them and call close without assuming that
71
+ // they'll be removed from the list instantaneously.
72
+ this . _openDialogs [ i ] . close ( ) ;
75
73
}
76
74
}
77
75
You can’t perform that action at this time.
0 commit comments