Commit 7b041f84 authored by Jacob Thornton's avatar Jacob Thornton

move removeClass up

parent 58cc7053
...@@ -45,6 +45,8 @@ ...@@ -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 @@ ...@@ -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')
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment