aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-alert.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-12-20 18:02:47 -0800
committerJacob Thornton <[email protected]>2011-12-20 18:02:47 -0800
commit1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1 (patch)
tree72a3b02a1755096a9737451dea3030f0da65197d /js/bootstrap-alert.js
parent7df0d1c7d18a72f401094d08afa4eaa9142fe511 (diff)
downloadbootstrap-1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1.tar.xz
bootstrap-1ef5fa7d6b4e50230c0c12919b0a06a9a2ac07f1.zip
giant refactor - all spec passing again...
Diffstat (limited to 'js/bootstrap-alert.js')
-rw-r--r--js/bootstrap-alert.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/bootstrap-alert.js b/js/bootstrap-alert.js
index 069130080..db9116f76 100644
--- a/js/bootstrap-alert.js
+++ b/js/bootstrap-alert.js
@@ -27,7 +27,7 @@
var dismiss = '[data-dismiss="alert"]'
, Alert = function ( el ) {
- $(el).delegate(dismiss, 'click', this.close)
+ $(el).on('click', dismiss, this.close)
}
Alert.prototype = {
@@ -72,7 +72,7 @@
* ============== */
$(function () {
- $('body').delegate(dismiss, 'click.alert.data-api', Alert.prototype.close)
+ $('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})
-}( window.jQuery || window.ender ) \ No newline at end of file
+}( window.jQuery ) \ No newline at end of file