From 7b041f8419cf861931cf812deaad15120ffffd1f Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 28 Aug 2011 17:52:00 -0700 Subject: [PATCH] move removeClass up --- examples/assets/js/bootstrap-alerts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') } } -- 2.47.2