mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
move removeClass up
This commit is contained in:
parent
58cc70531a
commit
7b041f8419
4
examples/assets/js/bootstrap-alerts.js
vendored
4
examples/assets/js/bootstrap-alerts.js
vendored
@ -45,6 +45,8 @@
|
||||
close: function () {
|
||||
var that = this
|
||||
|
||||
this.$element.removeClass('in')
|
||||
|
||||
function removeElement () {
|
||||
that.$element.remove()
|
||||
that.$element = null
|
||||
@ -53,8 +55,6 @@
|
||||
$.support.transition && this.$element.hasClass('fade') ?
|
||||
this.$element.bind(transitionEnd, removeElement) :
|
||||
removeElement()
|
||||
|
||||
this.$element.removeClass('in')
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user