Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
oui-dom-events
Advanced tools
Readme
DOM events manager with namespace support
npm install oui-dom-events
Bind fn
to be called when eventName
is triggered on element
import E from 'oui-dom-events'
let el = document.querySelector('div');
let fn = function() { /*...*/ }
E.on(el, 'click', fn);
// bind with namespace
E.on(el, 'click.slider', fn);
Remove all event callbacks bing called when eventName
is triggered on element
E.off(el, 'click');
// unbind with namespace
E.off(el, 'click.slider');
Remove fn
from being called when eventName
is triggered on element
// this also unbind events with namespace
E.off(el, 'click', fn);
// only unbind fn with namespace
E.off(el, 'click.slider', fn);
Delegate fn
to be called when eventName
is triggered on all elements that match selector
under element
E.delegate(el, '.item', 'click', fn);
// delegate with namespace
E.delegate(el, '.item', 'click.slider', fn);
Delegate fn
to be called when eventName
is triggered on all elements that match selector
under element
E.undelegate(el, '.item', 'click', fn);
// undelegate with namespace
E.undelegate(el, '.item', 'click.slider', fn);
E.undelegate(el, '.item', 'click.slider');
// off also unbind all delegated events
E.off(el, 'click');
Trigger an eventName
with dataObject
on element
E.trigger(el, 'click', {key1: 'data1'})
mouseenter
doesn't bubble, use mouseover
and mouseout
instead.MIT
FAQs
DOM Utils of OneUI
The npm package oui-dom-events receives a total of 68 weekly downloads. As such, oui-dom-events popularity was classified as not popular.
We found that oui-dom-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.