Browse Source

Update modals.js

make sure that were actually handling a `.modal` element.
pull/188/head
Zenobius Jiricek 12 years ago
parent
commit
08ad2150f4
  1. 4
      lib/js/modals.js

4
lib/js/modals.js

@ -20,6 +20,6 @@
window.addEventListener('touchend', function (event) {
var modal = getModal(event);
if (modal) modal.classList.toggle('active');
if (modal && modal.classList.contains('modal')) modal.classList.toggle('active');
});
}();
}();

Loading…
Cancel
Save