From 8cf04911db36b1ad5f4a98db51b44050c78df18a Mon Sep 17 00:00:00 2001 From: fat Date: Wed, 17 Jul 2013 23:25:26 -0700 Subject: [PATCH] fixes #7776 --- docs/assets/js/bootstrap.js | 23 +++++++++++++---------- docs/assets/js/bootstrap.min.js | 2 +- js/popover.js | 10 ++++++---- js/tests/unit/popover.js | 20 ++++++++++++++++++++ js/tests/unit/tooltip.js | 2 +- 5 files changed, 41 insertions(+), 16 deletions(-) diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index c562b88362..cf921cf2af 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -804,7 +804,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 @@ -939,11 +939,12 @@ this.$backdrop = $('