twitter/bootstrap — pull request #842 by jonathaningram (2011-12-22 05:42:58+00:00)
Title: Add close and closed hooks for alert

Basically, I have alerts in my app that are contained within a fixed layout - when closing the alert I need a hook so that I can remove a class from my fixed layout to "shift" it up by 30px or so to account for the space created when the alert is no longer there. FYI, the actual listener I use is this:

```js
$(".alert-message").bind("closed", function() {
if ($(this).hasClass("flash")) {
$(".with-flashes").each(function(i, item) {
$(item).removeClass("with-flashes");
});
}
});
```