Browse Source

Minimising getModal further

Thanks @fat!
pull/135/head
Ben Schwarz 12 years ago
parent
commit
12cd8acfe5
  1. 3
      lib/js/modals.js

3
lib/js/modals.js

@ -16,8 +16,7 @@
var getModal = function (event) { var getModal = function (event) {
var modalToggle = findModals(event.target); var modalToggle = findModals(event.target);
if (!modalToggle || !modalToggle.hash) return; if (!modalToggle || !modalToggle.hash) return document.querySelector(modalToggle.hash);
return document.querySelector(modalToggle.hash);
}; };
window.addEventListener('touchend', function (event) { window.addEventListener('touchend', function (event) {

Loading…
Cancel
Save