mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
move removeClass up
This commit is contained in:
+2
-2
@@ -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')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user