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') } }