From: Ben Schwarz Date: Sun, 13 Jan 2013 03:31:56 +0000 (+1100) Subject: Remove capture of click handler X-Git-Url: http://git.roojs.org/?p=ratchet;a=commitdiff_plain;h=438a177661bcf65e32115372303696650cdc1999 Remove capture of click handler * We're using finger blast, so we shouldn't need to set a click event anyway. --- 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