angular-ui/bootstrap — pull request #2284 by davidwparker (2014-05-30 17:34:47+00:00)
Title: Add backdrop class to new modals

Given the ability to add backdrop classes:
https://github.com/angular-ui/bootstrap/pull/1862

When a modal calls another modal, due to some race conditions:
https://github.com/angular-ui/bootstrap/blob/master/src/modal/modal.js#L159
https://github.com/angular-ui/bootstrap/blob/master/src/modal/modal.js#L170
a modal's background may be reused and the new backdrop won't have the new classes.

The new modal should get any new backdropClasses provided.

I wasn't sure how you would expect to test this, so I didn't provide any tests, sorry...