diff --git a/dist/ratchet.js b/dist/ratchet.js index 9871e0f..4059da3 100644 --- a/dist/ratchet.js +++ b/dist/ratchet.js @@ -30,10 +30,6 @@ var modal = getModal(event); if (modal) modal.classList.toggle('active'); }); - - window.addEventListener('click', function (event) { - if (getModal(event)) event.preventDefault(); - }); }();/* ---------------------------------- * POPOVER v1.0.0 * Licensed under The MIT License diff --git a/lib/js/modals.js b/lib/js/modals.js index c796d48..4448107 100644 --- a/lib/js/modals.js +++ b/lib/js/modals.js @@ -22,8 +22,4 @@ var modal = getModal(event); if (modal) modal.classList.toggle('active'); }); - - window.addEventListener('click', function (event) { - if (getModal(event)) event.preventDefault(); - }); }(); \ No newline at end of file