aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-08-28 17:52:00 -0700
committerJacob Thornton <[email protected]>2011-08-28 17:52:00 -0700
commit7b041f8419cf861931cf812deaad15120ffffd1f (patch)
tree57672dc2f463a1e1b1ca618db08f5d84d3f2d18c /examples
parent58cc70531ad1b5231386d8d3037891e25963801b (diff)
downloadbootstrap-7b041f8419cf861931cf812deaad15120ffffd1f.tar.xz
bootstrap-7b041f8419cf861931cf812deaad15120ffffd1f.zip
move removeClass up
Diffstat (limited to 'examples')
-rw-r--r--examples/assets/js/bootstrap-alerts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/assets/js/bootstrap-alerts.js b/examples/assets/js/bootstrap-alerts.js
index 53692f8e2..e27ac6482 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')
}
}