From: Ben Schwarz Date: Mon, 24 Dec 2012 01:46:43 +0000 (+1100) Subject: Test for truth X-Git-Url: http://git.roojs.org/?p=ratchet;a=commitdiff_plain;h=f0231577d2910f4beacb525b913442e8b3249603 Test for truth --- diff --git a/lib/js/modals.js b/lib/js/modals.js index 6a0e6ef..4f1f40d 100644 --- a/lib/js/modals.js +++ b/lib/js/modals.js @@ -23,9 +23,7 @@ window.addEventListener('touchend', function (event) { var modal = getModal(event); - - if (!modal) return; - modal.classList.toggle('active'); + if (modal) modal.classList.toggle('active'); }); window.addEventListener('click', function (event) {