From a4f0e8d37ab109c3f4476877854d4aea149fb1f2 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 10 Aug 2013 13:35:20 -0700 Subject: [PATCH] fixes #9111 --- dist/js/bootstrap.js | 3 +- dist/js/bootstrap.min.js | 2 +- js/modal.js | 3 +- js/tests/unit/modal.js | 301 +++++++++++++++++++++------------------ 4 files changed, 166 insertions(+), 143 deletions(-) diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index b56349703c..7c163a6d70 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 = $('