mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
move removeClass up
This commit is contained in:
parent
58cc70531a
commit
7b041f8419
1 changed files with 2 additions and 2 deletions
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…
Add table
Reference in a new issue