Comparing version 0.0.2 to 0.0.3
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120503
10
43