0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Merge pull request #13406 from EnsignR/closed.bs.alert-after-remove

fires closed.bs.alert *after* DOM detach() as per #12379
This commit is contained in:
Chris Rebert 2014-05-05 22:47:50 -07:00
commit a032c396ee

View File

@ -42,7 +42,8 @@
$parent.removeClass('in')
function removeElement() {
$parent.trigger('closed.bs.alert').remove()
// detach from parent, fire event then clean up data
$parent.detach().trigger('closed.bs.alert').remove()
}
$.support.transition && $parent.hasClass('fade') ?