vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js in twitter-bootstrap-rails-2.0.1.0 vs vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js in twitter-bootstrap-rails-2.0.2
- old
+ new
@@ -1,7 +1,7 @@
/* ==========================================================
- * bootstrap-alert.js v2.0.1
+ * bootstrap-alert.js v2.0.0
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -49,18 +49,15 @@
e && e.preventDefault()
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
- $parent
- .trigger('close')
- .removeClass('in')
+ $parent.removeClass('in')
function removeElement() {
- $parent
- .trigger('closed')
- .remove()
+ $parent.remove()
+ $parent.trigger('closed')
}
$.support.transition && $parent.hasClass('fade') ?
$parent.on($.support.transition.end, removeElement) :
removeElement()
@@ -89,6 +86,6 @@
$(function () {
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})
-}( window.jQuery );
\ No newline at end of file
+}( window.jQuery )