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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user