Commit a032c396 authored by Chris Rebert's avatar Chris Rebert

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

fires closed.bs.alert *after* DOM detach() as per #12379
parents c3f294da 73f7acc0
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
$parent.removeClass('in') $parent.removeClass('in')
function removeElement() { 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') ? $.support.transition && $parent.hasClass('fade') ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment