Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

outclick

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outclick - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

test/cool.html

4

package.json
{
"name": "outclick",
"version": "0.0.2",
"version": "0.0.3",
"description": "A library to detect whether a click was detected outside an element",
"main": "index.js",
"main": "src/index.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1"

@@ -5,4 +5,5 @@ # outclick 👉

A library used to detect DOM clicks outside a specific elements
A library used to detect DOM clicks outside specific elements, useful for closing menus
![Example use .gif](https://raw.githubusercontent.com/joe-tom/outclick/master/test/outclick.gif)

@@ -9,0 +10,0 @@ ## Warning

@@ -24,3 +24,2 @@ (function(window){

exceptions.push(this)
OutClickListeners.push({

@@ -45,6 +44,6 @@ exceptions: exceptions,

}
}
if(!contains){
listener.listener && listener.listener(e)
}
if(!contains){
listener.listener && listener.listener(e)
}

@@ -51,0 +50,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc