From 084f0fb11351e899decc33faf53ada85d29ea7fa Mon Sep 17 00:00:00 2001 From: Tobias Lindig Date: Fri, 17 Jan 2014 13:21:57 +0100 Subject: add namespace `.bs` also to the event `dismiss.modal` --- js/modal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/modal.js b/js/modal.js index cb1edc5a8..c737826dc 100644 --- a/js/modal.js +++ b/js/modal.js @@ -50,7 +50,7 @@ this.escape() - this.$element.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) + this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) this.backdrop(function () { var transition = $.support.transition && that.$element.hasClass('fade') @@ -103,7 +103,7 @@ this.$element .removeClass('in') .attr('aria-hidden', true) - .off('click.dismiss.modal') + .off('click.dismiss.bs.modal') $.support.transition && this.$element.hasClass('fade') ? this.$element @@ -155,7 +155,7 @@ this.$backdrop = $('