prevent-default-wrapper
v0.0.3
Published
Wraps an event or an event handler and calls `preventDefault()`
Downloads
4
Readme
prevent-default-wrapper
Wraps an event or an event handler and calls preventDefault()
Installation
npm install prevent-default-wrapper
Usage
$('a').click(preventDefault(function(e) {
// ...
}));
$('a').click(function(e) {
preventDefault(e);
// ...
});