0.0.2 • Published 9 years ago
democracyos-prevent v0.0.2
prevent
Cross-browser preventDefault
Installation
$ component install yields/prevent
Example
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
.
License
MIT
0.0.2
9 years ago