powmedia/backbone.bootstrap-modal — pull request #18 by pschyska (2012-11-19 17:57:13+00:00)
Title: Changing order of 'hidden' event triggering and handler installation

I had the problem that the modal DOM wasn't cleaned up after closing. Swapping these lines fixed this for me. I guess when 'hide' was too fast, the 'hidden' handler wasn't installed yet, and so the elements were not removed.