aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2013-08-10 13:35:20 -0700
committerJacob Thornton <[email protected]>2013-08-10 13:35:20 -0700
commita4f0e8d37ab109c3f4476877854d4aea149fb1f2 (patch)
tree0e7214fca29e6237cf877dfc9acc8624db26a145 /dist/js/bootstrap.js
parentdbed9da77403337235acb652c3128ebc84672d60 (diff)
downloadbootstrap-a4f0e8d37ab109c3f4476877854d4aea149fb1f2.tar.xz
bootstrap-a4f0e8d37ab109c3f4476877854d4aea149fb1f2.zip
fixes #9111
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index b56349703..7c163a6d7 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -925,6 +925,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
this.$element
.removeClass('in')
.attr('aria-hidden', true)
+ .off('click.dismiss.modal')
$.support.transition && this.$element.hasClass('fade') ?
this.$element
@@ -977,7 +978,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
.appendTo(document.body)
- this.$element.on('click', $.proxy(function (e) {
+ this.$element.on('click.dismiss.modal', $.proxy(function (e) {
if (e.target !== e.currentTarget) return
this.options.backdrop == 'static'
? this.$element[0].focus.call(this.$element[0])