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 @@ -85,14 +85,12 @@ export class MdDialog {
85
85
closeAll ( ) : void {
86
86
let i = this . _openDialogs . length ;
87
87
88
- if ( i > 0 ) {
89
- while ( i -- ) {
90
- // The `_openDialogs` property isn't updated after close until the rxjs subscription
91
- // runs on the next microtask, in addition to modifying the array as we're going
92
- // through it. We loop through all of them and call close without assuming that
93
- // they'll be removed from the list instantaneously.
94
- this . _openDialogs [ i ] . close ( ) ;
95
- }
88
+ while ( i -- ) {
89
+ // The `_openDialogs` property isn't updated after close until the rxjs subscription
90
+ // runs on the next microtask, in addition to modifying the array as we're going
91
+ // through it. We loop through all of them and call close without assuming that
92
+ // they'll be removed from the list instantaneously.
93
+ this . _openDialogs [ i ] . close ( ) ;
96
94
}
97
95
}
98
96
You can’t perform that action at this time.
0 commit comments