![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | lib/ | 2 years ago | - | |
![]() | LICENSE.md | 39 years ago | 1.1K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
![]() | README.md | 39 years ago | 1.7K | f12eb36 documentaiton updates [كارل مبارك] |
![]() | package.json | 2 years ago | 2.2K | 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك] |
add dom event listener. normalize ie and others. port from https://github.com/modulex/event-dom
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