Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.
/ prevent Public archive

Cross browser prevent default, because microsoft is awesome.

Notifications You must be signed in to change notification settings

yields/prevent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Cross browser prevent default, because microsoft is awesome.

Resources

Stars

Watchers

Forks

Packages

No packages published