Drop newline
[ratchet] / lib / js / modals.js
index 6a0e6ef..2d8c7a9 100644 (file)
   var getModal = function (event) {
     var modalToggle = findModals(event.target);
     if (!modalToggle || !modalToggle.hash) return;
-    
     return document.querySelector(modalToggle.hash);
   };
 
   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) {