/ archiveofbelonging.org / back / node_modules / add-dom-event-listener /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]lib/2 years ago -  
[TXT]LICENSE.md39 years ago1.1K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md39 years ago1.7Kf12eb36 documentaiton updates [كارل مبارك]
[   ]package.json2 years ago2.2K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80