dist/es2015/dialog-service.js
/**
     * Closes all open dialogs at the time of invocation.
     * @return Promise<DialogController[]> All controllers whose close operation was cancelled.
     */
Closes all open dialogs at the time of invocation.
@return Promise All controllers whose close operation was cancelled.
Closes all open dialogs at the time of invocation . @return Promise All controllers whose close operation was cancelled .
closeAll() {
        return Promise.all(this.controllers.slice(0).map(controller => {
            if (!controller.settings.rejectOnCancel) {
                return controller.cancel().then(result => {
                    if (result.wasCancelled) {
                        return controller;
                    }
                    return null;
                });
            }
            return controller.cancel().then(() => null).catch(reason => {
                if (reason.wasCancelled) {
                    return controller;
                }
                throw reason;
            });
        })).then(unclosedControllers => unclosedControllers.filter(unclosed => !!unclosed));
    }
closeAll ( ) { return Promise . all ( this . controllers . slice ( 0 ) . map ( controller => { if ( ! controller . settings . rejectOnCancel ) { return controller . cancel ( ) . then ( result => { if ( result . wasCancelled ) { return controller ; } return null ; } ) ; } return controller . cancel ( ) . then ( ( ) => null ) . catch ( reason => { if ( reason . wasCancelled ) { return controller ; } throw reason ; } ) ; } ) ) . then ( unclosedControllers => unclosedControllers . filter ( unclosed => ! ! unclosed ) ) ; }
Closes all open dialogs at the time of invocation.
Closes all open dialogs at the time of invocation .