Skip to content

Commit

Permalink
fires closed.bs.alert *after* DOM detach()
Browse files Browse the repository at this point in the history
fires closed.bs.alert *after* element is removed from DOM.
Previously it fired while the element was still attached.
  • Loading branch information
EnsignR committed Apr 23, 2014
1 parent 9c4afc5 commit 637808f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') ?
Expand Down

0 comments on commit 637808f

Please sign in to comment.