Comparing version 1.7.1 to 1.7.2
@@ -21,3 +21,3 @@ (function (exports) { | ||
if (selector instanceof HTMLElement || isWindow(selector)) { | ||
if (selector instanceof HTMLElement || selector instanceof Node || isWindow(selector)) { | ||
return [selector]; | ||
@@ -24,0 +24,0 @@ } else if (selector instanceof NodeList) { |
@@ -5,3 +5,3 @@ import findOne from './findOne'; | ||
function find(selector, context = null) { | ||
if (selector instanceof HTMLElement || isWindow(selector)) { | ||
if (selector instanceof HTMLElement || selector instanceof Node || isWindow(selector)) { | ||
return [selector]; | ||
@@ -8,0 +8,0 @@ } else if (selector instanceof NodeList) { |
{ | ||
"name": "domassist", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "Various dom helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/domassist.js", |
Sorry, the diff of this file is not supported yet
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
109683
42