
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@skroutz/has-event
Advanced tools
JavaScript test support utility for jQuery events
A way to detect the presence of jQuery events is currently a wontfix, thus this helper.
npm install @skroutz/has-event
or
bower install hasEvent
(Deprecated!!!)
Don't forget to include the lib itself, located in dist/has_event.js
The examples below use chai should style assertions.
// Native event
$('.foo').hasEvent('click', someHandler).should.be.true
// Custom event
$('.foo').hasEvent('custom', someHandler).should.be.true
// Delegated event
$('body').hasEvent('click', '.foo .bar', somehandler).should.be.true
// 'Live' event
$(document).hasEvent('click', '.foo .bar', someHandler).should.be.true
// Event on window
$(window).hasEvent('scroll', someHandler).should.be.false
Currently there are tests against jQuery versions 1.7 up to 2.0.3
Browse the builds here
Copyright (c) 2013 Dimitris Zorbash Licensed under the MIT license.
FAQs
JavaScript test support utility for jQuery events
The npm package @skroutz/has-event receives a total of 0 weekly downloads. As such, @skroutz/has-event popularity was classified as not popular.
We found that @skroutz/has-event demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.