Test for truth
authorBen Schwarz <ben@germanforblack.com>
Mon, 24 Dec 2012 01:46:43 +0000 (12:46 +1100)
committerBen Schwarz <ben@germanforblack.com>
Mon, 24 Dec 2012 01:46:43 +0000 (12:46 +1100)
lib/js/modals.js

index 6a0e6ef..4f1f40d 100644 (file)
@@ -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) {