diff options
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index ef737653e..31c497b39 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -851,7 +851,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } var Modal = function (element, options) { this.options = options - this.$element = $(element).on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) + this.$element = $(element) this.$backdrop = this.isShown = null @@ -880,6 +880,8 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } this.escape() + this.$element.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) + this.backdrop(function () { var transition = $.support.transition && that.$element.hasClass('fade') |
