Skip to content

Commit

Permalink
fix: suppress unhandled rejection
Browse files Browse the repository at this point in the history
closes #188
  • Loading branch information
Shlomi Assaf (shlassaf) committed Sep 23, 2016
1 parent e97a0a2 commit a383762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/angular2-modal/models/dialog-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class DialogRef<T> {
dismiss() {
const _dismiss = () => {
this.destroy();
this._resultDeferred.promise.catch(() => {});
this._resultDeferred.reject();
};
this._fireHook<boolean>('beforeDismiss')
Expand Down

0 comments on commit a383762

Please sign in to comment.