Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/dom-event
Component: Simple wrapper to fix DOM events in IE
https://github.com/anthonyshort/dom-event
Last synced: 24 days ago
JSON representation
Component: Simple wrapper to fix DOM events in IE
- Host: GitHub
- URL: https://github.com/anthonyshort/dom-event
- Owner: anthonyshort
- Created: 2012-11-17T04:02:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-11-17T13:46:14.000Z (almost 12 years ago)
- Last Synced: 2024-04-15T03:16:20.130Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# dom-event
Simple DOM event wrapper for cross-browser support from IE8+. This is so we don't need to rely on large libraries just to bind events cross-browser.
The the spirit of Component, I'm aiming to keep this simple.
**This is a work in progress**
## Installation
$ component install anthonyshort/dom-event
## API
```js
var EventWrapper = require('anthonyshort-dom-event');
var dom = require('component-domify');
dom(el).bind('click', function(event){
event = new EventWrapper(event);
event.preventDefault();
});
```## License
MIT