From 12cd8acfe53a6d23f00891ff89e004fd636f2882 Mon Sep 17 00:00:00 2001 From: Ben Schwarz Date: Mon, 24 Dec 2012 13:26:49 +1100 Subject: [PATCH] Minimising getModal further Thanks @fat! --- lib/js/modals.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/js/modals.js b/lib/js/modals.js index 2d8c7a9..51f0770 100644 --- a/lib/js/modals.js +++ b/lib/js/modals.js @@ -16,8 +16,7 @@ var getModal = function (event) { var modalToggle = findModals(event.target); - if (!modalToggle || !modalToggle.hash) return; - return document.querySelector(modalToggle.hash); + if (!modalToggle || !modalToggle.hash) return document.querySelector(modalToggle.hash); }; window.addEventListener('touchend', function (event) {