Commit 637808f2 authored by Ross Nye's avatar Ross Nye

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.
parent 9c4afc57
...@@ -42,7 +42,7 @@ ...@@ -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') ?
......
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