add-dom-event-listener

WebJar for add-dom-event-listener

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

add-dom-event-listener
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

add-dom-event-listener
WebJar for add-dom-event-listener
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/yiminghe/add-dom-event-listener

Download add-dom-event-listener

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/add-dom-event-listener/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>add-dom-event-listener</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/add-dom-event-listener/
implementation 'org.webjars.npm:add-dom-event-listener:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/add-dom-event-listener/
implementation ("org.webjars.npm:add-dom-event-listener:1.1.0")
'org.webjars.npm:add-dom-event-listener:jar:1.1.0'
<dependency org="org.webjars.npm" name="add-dom-event-listener" rev="1.1.0">
  <artifact name="add-dom-event-listener" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='add-dom-event-listener', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "add-dom-event-listener" % "1.1.0"
[org.webjars.npm/add-dom-event-listener "1.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : object-assign jar [4,5)

Project Modules

There are no modules declared in this project.

add-dom-event-listener

add dom event listener. normalize ie and others. port from https://github.com/modulex/event-dom

NPM version build status Test coverage gemnasium deps node version npm download

examples

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
});
handler.remove(); // detach event listener

history

1.1.0

  • allow event options

Versions

Version
1.1.0
1.0.2
1.0.0