1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-19 11:51:23 +02:00

fires closed.bs.alert *after* DOM detach()

fires closed.bs.alert *after* element is removed from DOM.
Previously it fired while the element was still attached.
This commit is contained in:
Ross Nye
2014-04-23 17:34:32 +10:00
parent 9c4afc5772
commit 637808f2ee

View File

@@ -42,7 +42,7 @@
$parent.removeClass('in')
function removeElement() {
$parent.trigger('closed.bs.alert').remove()
$parent.detach().trigger('closed.bs.alert')
}
$.support.transition && $parent.hasClass('fade') ?