Skip to content

Commit

Permalink
Update alert.js
Browse files Browse the repository at this point in the history
Added call to remove() after event fires to clean up data as per discussion at twbs#12379
  • Loading branch information
EnsignR committed Apr 30, 2014
1 parent 637808f commit 73f7acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
$parent.removeClass('in')

function removeElement() {
$parent.detach().trigger('closed.bs.alert')
// detach from parent, fire event then clean up data
$parent.detach().trigger('closed.bs.alert').remove()
}

$.support.transition && $parent.hasClass('fade') ?
Expand Down

0 comments on commit 73f7acc

Please sign in to comment.