prevent-default-wrapper

0.0.3 • Public • Published

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);
  
  // ...
});

Readme

Keywords

none

Package Sidebar

Install

npm i prevent-default-wrapper

Weekly Downloads

0

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • johnnynotsolucky