Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

fix(modal): prevent error when closing non-opened #2114

Closed
wants to merge 1 commit into from

Conversation

zeropaper
Copy link

$modalStack.close() and $modalStack.dismiss() were assuming that openedWindows.get(modalInstance) always returned something and this might have led to thrown errors when trying to close a modal window who was actually not open.

$modalStack.close() and $modalStack.dismiss() were assuming that openedWindows.get(modalInstance) always returned something and this might have led to thrown errors when trying to close a modal window who was actually not open.
@bekos
Copy link
Contributor

bekos commented Apr 30, 2014

@zeropaper Thx but there is already a PR open for this (#1972).

@bekos bekos closed this Apr 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants