Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

add-dom-event-listener

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-dom-event-listener - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

lib/EventBaseObject.js

27

package.json
{
"name": "add-dom-event-listener",
"version": "0.0.0",
"version": "1.0.0",
"description": "add dom event listener. normalize ie and others",

@@ -10,2 +10,6 @@ "keywords": [

],
"main": "lib/index",
"files": [
"lib"
],
"homepage": "http://github.com/yiminghe/add-dom-event-listener",

@@ -24,8 +28,25 @@ "author": "",

},
"scripts": {
"build": "rc-tools run build",
"gh-pages": "rc-tools run gh-pages",
"start": "node --harmony node_modules/.bin/rc-server",
"pub": "rc-tools run pub",
"lint": "rc-tools run lint",
"karma": "rc-tools run karma",
"saucelabs": "node --harmony node_modules/.bin/rc-tools run saucelabs",
"browser-test": "node --harmony node_modules/.bin/rc-tools run browser-test",
"browser-test-cover": "node --harmony node_modules/.bin/rc-tools run browser-test-cover"
},
"devDependencies": {
"pre-commit": "1.x"
"expect.js": "~0.3.1",
"pre-commit": "1.x",
"rc-server": "3.x",
"rc-tools": "4.x"
},
"precommit": [
"lint"
]
],
"dependencies": {
"object-assign": "4.x"
}
}
# add-dom-event-listener
add dom event listener. normalize ie and others
add dom event listener. normalize ie and others. port from https://github.com/modulex/event-dom
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![gemnasium deps][gemnasium-image]][gemnasium-url]
[![node version][node-image]][node-url]
[![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/add-dom-event-listener.svg?style=flat-square
[npm-url]: http://npmjs.org/package/add-dom-event-listener
[travis-image]: https://img.shields.io/travis/yiminghe/add-dom-event-listener.svg?style=flat-square
[travis-url]: https://travis-ci.org/yiminghe/add-dom-event-listener
[coveralls-image]: https://img.shields.io/coveralls/yiminghe/add-dom-event-listener.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yiminghe/add-dom-event-listener?branch=master
[gemnasium-image]: http://img.shields.io/gemnasium/yiminghe/add-dom-event-listener.svg?style=flat-square
[gemnasium-url]: https://gemnasium.com/yiminghe/add-dom-event-listener
[node-image]: https://img.shields.io/badge/node.js-%3E=_4.0.0-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/add-dom-event-listener.svg?style=flat-square
[download-url]: https://npmjs.org/package/add-dom-event-listener
## examples
```js
var addEventListener = require('add-dom-event-listener');
var handler = addEventListener(document.body, 'click', function(e){
console.log(e.target); // works for ie
console.log(e.nativeEvent); // native dom event
});
```
.editorconfig
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc