mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Update alert.js
Added call to remove() after event fires to clean up data as per discussion at #12379
This commit is contained in:
parent
637808f2ee
commit
73f7acc01b
@ -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') ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user