Cross-browser preventDefault
$ component install yields/prevent
anchor.onclick = require('prevent');
anchor.onclick = function(e){
if (something) return require('prevent')(e);
};
Prevent the given e
, if the argument is omitted,
the method will fallback to window.event
.
MIT