Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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