aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <[email protected]>2013-07-17 23:15:50 -0700
committerfat <[email protected]>2013-07-17 23:15:50 -0700
commit451acb42dbf71d2902dbc9f2e2ab45294401e487 (patch)
tree6236da1220b9537f036bf57975c9b9a182cac482
parent5cb8bfd7da9b1e280fa8eb3332b83812f3aeac3a (diff)
downloadbootstrap-451acb42dbf71d2902dbc9f2e2ab45294401e487.tar.xz
bootstrap-451acb42dbf71d2902dbc9f2e2ab45294401e487.zip
fixes #7755
-rw-r--r--js/modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/modal.js b/js/modal.js
index 43e961baa..88bc1cb80 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -25,7 +25,7 @@
var Modal = function (element, options) {
this.options = options
- this.$element = $(element).delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
+ this.$element = $(element).on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
this.$backdrop =
this.isShown = null