Browse Source

Remove capture of click handler

* We're using finger blast, so we shouldn't need to set a click event anyway.
pull/135/head
Ben Schwarz 12 years ago
parent
commit
438a177661
  1. 4
      dist/ratchet.js
  2. 4
      lib/js/modals.js

4
dist/ratchet.js vendored

@ -30,10 +30,6 @@
var modal = getModal(event);
if (modal) modal.classList.toggle('active');
});
window.addEventListener('click', function (event) {
if (getModal(event)) event.preventDefault();
});
}();/* ----------------------------------
* POPOVER v1.0.0
* Licensed under The MIT License

4
lib/js/modals.js

@ -22,8 +22,4 @@
var modal = getModal(event);
if (modal) modal.classList.toggle('active');
});
window.addEventListener('click', function (event) {
if (getModal(event)) event.preventDefault();
});
}();
Loading…
Cancel
Save