Remove capture of click handler
authorBen Schwarz <ben@germanforblack.com>
Sun, 13 Jan 2013 03:31:56 +0000 (14:31 +1100)
committerBen Schwarz <ben@germanforblack.com>
Sun, 13 Jan 2013 03:31:56 +0000 (14:31 +1100)
* We're using finger blast, so we shouldn't need to set a click event anyway.

dist/ratchet.js
lib/js/modals.js

index 9871e0f..4059da3 100644 (file)
     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
index c796d48..4448107 100644 (file)
@@ -22,8 +22,4 @@
     var modal = getModal(event);
     if (modal) modal.classList.toggle('active');
   });
-
-  window.addEventListener('click', function (event) { 
-    if (getModal(event)) event.preventDefault();
-  });
 }();
\ No newline at end of file