vendor/assets/javascripts/twitter/bootstrap/alert.js in anjlab-bootstrap-rails-2.1.1.1 vs vendor/assets/javascripts/twitter/bootstrap/alert.js in anjlab-bootstrap-rails-2.2.0.0
- old
+ new
@@ -1,7 +1,7 @@
/* ==========================================================
- * bootstrap-alert.js v2.1.1
+ * bootstrap-alert.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -81,10 +81,8 @@
/* ALERT DATA-API
* ============== */
- $(function () {
- $('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
- })
+ $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
}(window.jQuery);
\ No newline at end of file