diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/assets/js/bootstrap-modal.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/assets/js/bootstrap-modal.js b/examples/assets/js/bootstrap-modal.js index c4d917097..4bc395e1c 100644 --- a/examples/assets/js/bootstrap-modal.js +++ b/examples/assets/js/bootstrap-modal.js @@ -107,13 +107,10 @@ , animate = this.$element.hasClass('fade') ? 'fade' : '' if ( this.isOpen && this.settings.backdrop ) { this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />') + .click(function () { that.close() }) .appendTo(document.body) - $('body').delegate('.modal-backdrop', 'click.modal.backdrop', function () { - that.close() - }) } else if ( !this.isOpen && this.$backdrop ) { this.$backdrop.removeClass('in') - $('body').undelegate('click.modal.backdrop') function removeElement() { that.$backdrop.remove() |
