This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix dialog) Make sure dialog only destroys itself.
Since destruction is deferred, there's a risk of another dialog having been created by the time "destroy()" is called. We therefore have to make sure that we only remove one from the stack if it's still left in it (which would be the case if "destroy()" gets called as a result of the scope being destroyed independently, but wouldn't be the case if the dialog is destroyed as a result of calling $mdDialog.hide()).
- Loading branch information
1 parent
06a724f
commit 17f4c19
Showing
2 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters