diff --git a/src/js/bootstrap-dialog.js b/src/js/bootstrap-dialog.js index 73cc05b..1305507 100644 --- a/src/js/bootstrap-dialog.js +++ b/src/js/bootstrap-dialog.js @@ -1,3 +1,5 @@ +/* global define */ + /* ================================================ * Make use of Bootstrap's modal more monkey-friendly. * @@ -332,13 +334,6 @@ BootstrapDialog.METHODS_TO_OVERRIDE = {}; BootstrapDialog.METHODS_TO_OVERRIDE['v3.1'] = { - handleModalBackdropEvent: function () { - this.getModal().on('click', { dialog: this }, function (event) { - event.target === this && event.data.dialog.isClosable() && event.data.dialog.canCloseByBackdrop() && event.data.dialog.close(); - }); - - return this; - }, /** * To make multiple opened dialogs look better. * @@ -1152,13 +1147,6 @@ return this; }, - handleModalBackdropEvent: function () { - this.getModal().on('click', { dialog: this }, function (event) { - $(event.target).hasClass('modal-backdrop') && event.data.dialog.isClosable() && event.data.dialog.canCloseByBackdrop() && event.data.dialog.close(); - }); - - return this; - }, isModalEvent: function (event) { return typeof event.namespace !== 'undefined' && event.namespace === 'bs.modal'; },