1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-26 14:54:27 +02:00

Allow us to run our unit test on differents jquery version

This commit is contained in:
Johann-S
2017-11-10 11:25:47 +01:00
committed by XhmikosR
parent cdab56d940
commit e8ba37139f
6 changed files with 1058 additions and 203 deletions

View File

@@ -29,6 +29,8 @@ $(function () {
$.fn.bootstrapModal = $.fn.modal.noConflict()
},
afterEach: function () {
$('.modal-backdrop, #modal-test').remove()
$(document.body).removeClass('modal-open')
$.fn.modal = $.fn.bootstrapModal
delete $.fn.bootstrapModal
}