From 451acb42dbf71d2902dbc9f2e2ab45294401e487 Mon Sep 17 00:00:00 2001 From: fat Date: Wed, 17 Jul 2013 23:15:50 -0700 Subject: [PATCH] fixes #7755 --- js/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/modal.js b/js/modal.js index 43e961baa9..88bc1cb804 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