0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01: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') $parent.removeClass('in')
function removeElement() { function removeElement() {
$parent.trigger('closed.bs.alert').remove() $parent.detach().trigger('closed.bs.alert')
} }
$.support.transition && $parent.hasClass('fade') ? $.support.transition && $parent.hasClass('fade') ?