angular-ui/bootstrap — pull request #360 by Narretz (2013-04-26 15:33:38+00:00)
Title: fix(dialog): Don't increase the active backdrops counter when opening a dialog that is already open

When opening a dialog that is already open (e.g. to change the template), the active.backdrops count should not be increased, because this prevents the backdrop from being removed when you close the twice opened dialog.

I added a test, but I am not sure if this is the right way to test it.