1.0.0 • Published 9 years ago
@segment/prevent-default v1.0.0
prevent
Cross-browser preventDefault
Installation
$ npm install @segment/prevent-defaultExample
anchor.onclick = require('prevent');
anchor.onclick = function(e){
if (something) return require('prevent')(e);
};API
prevent(e)
Prevent the given e, if the argument is omitted, the method will fallback to window.event.
1.0.0
9 years ago