element-closest
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,5 @@ | ||
# 2.0.1 (2016-04-08) | ||
- Fixed an issue referencing the current nodeType | ||
# 2.0.0 (2016-04-07) | ||
@@ -2,0 +6,0 @@ |
@@ -21,3 +21,3 @@ // element-closest | CC0-1.0 | github.com/jonathantneal/closest | ||
while (element && element.nodeType !== 11) { | ||
while (element && element.nodeType === 1) { | ||
if (element.matches(selector)) { | ||
@@ -24,0 +24,0 @@ return element; |
{ | ||
"name": "element-closest", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Return the closest element matching a selector up the DOM tree", | ||
@@ -5,0 +5,0 @@ "main": "closest.js", |
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
16073