]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
move removeClass up
authorJacob Thornton <jacobthornton@gmail.com>
Mon, 29 Aug 2011 00:52:00 +0000 (17:52 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Mon, 29 Aug 2011 00:52:00 +0000 (17:52 -0700)
examples/assets/js/bootstrap-alerts.js

index 53692f8e2ee75142aac0b8e409e1b52a5bbdc28a..e27ac648294d8e48322529e04311da7750c16b1a 100644 (file)
@@ -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')
     }
 
   }