Commit a032c396 authored by Chris Rebert's avatar Chris Rebert
Browse files

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

fires closed.bs.alert *after* DOM detach() as per #12379
parents c3f294da 73f7acc0
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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') ?
......
Supports Markdown
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