From: Jacob Thornton Date: Mon, 29 Aug 2011 00:52:00 +0000 (-0700) Subject: move removeClass up X-Git-Tag: v1.3.0~86^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b041f8419cf861931cf812deaad15120ffffd1f;p=thirdparty%2Fbootstrap.git move removeClass up --- diff --git a/examples/assets/js/bootstrap-alerts.js b/examples/assets/js/bootstrap-alerts.js index 53692f8e2e..e27ac64829 100644 --- a/examples/assets/js/bootstrap-alerts.js +++ b/examples/assets/js/bootstrap-alerts.js @@ -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') } }