Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

event-handler

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event-handler

Event handler

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Event Handler

Usage

With this library you can listen in on native scroll events the same way you would if a user was scrolling the page with a mouse or touch event.

var obj = {};
EventHandler.createTarget(obj);

// listen to events
obj.addEventListener('wee', function () {
    // wee was trigger!
});

obj.dispatchEvent('wee');

EventHandler.destroyTarget(obj);

Keywords

event handler

FAQs

Package last updated on 21 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts