0
0
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:
Jacob Thornton 2011-08-28 17:52:00 -07:00
parent 58cc70531a
commit 7b041f8419

View File

@ -45,6 +45,8 @@
close: function () { close: function () {
var that = this var that = this
this.$element.removeClass('in')
function removeElement () { function removeElement () {
that.$element.remove() that.$element.remove()
that.$element = null that.$element = null
@ -53,8 +55,6 @@
$.support.transition && this.$element.hasClass('fade') ? $.support.transition && this.$element.hasClass('fade') ?
this.$element.bind(transitionEnd, removeElement) : this.$element.bind(transitionEnd, removeElement) :
removeElement() removeElement()
this.$element.removeClass('in')
} }
} }