twitter/bootstrap — pull request #2688 by francisl (2012-03-19 20:01:14+00:00)
Title: Problem with backdrop

This solve a 'race' problem with the hidden event.

Base on the documentation : hidden "This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete)."

But in reality the modal has not finished being hidden. And will accumulate backdrop elements.

How to reproduce :
Call show on a 'hidden' event

This could be bypass by using 'backdrop': 'static' in SOME cases.

This work for static and fix the other cases.