Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
, select = function (selector, _root) {
var root = normalizeRoot(_root)
if (!root || !selector) return []
if (selector === window || isNode(selector)) {
return !_root || (selector !== window && isNode(root) && nw.contains(root, container)) ? [selector] : []
}
if (selector && arrayLike(selector)) return flatten(selector)
return nw.select(selector, root)
}
, is = function (s, r) {
, select = function (selector, _root) {
var root = normalizeRoot(_root)
if (!root || !selector) return []
if (selector === window || isNode(selector)) {
return !_root || (selector !== window && isNode(root) && nw.contains(root, container)) ? [selector] : []
}
if (selector && arrayLike(selector)) return flatten(selector)
return nw.select(selector, root)
}
, is = function (s, r) {
, select = function (selector, _root) {
var root = normalizeRoot(_root)
if (!root || !selector) return []
if (selector === window || isNode(selector)) {
return !_root || (selector !== window && isNode(root) && nw.contains(root, container)) ? [selector] : []
}
if (selector && arrayLike(selector)) return flatten(selector)
return nw.select(selector, root)
}
, is = function (s, r) {
, select = function (selector, _root) {
var root = normalizeRoot(_root)
if (!root || !selector) return []
if (selector === window || isNode(selector)) {
return !_root || (selector !== window && isNode(root) && nw.contains(root, container)) ? [selector] : []
}
if (selector && arrayLike(selector)) return flatten(selector)
return nw.select(selector, root)
}
, is = function (s, r) {
, select = function (selector, _root) {
var root = normalizeRoot(_root)
if (!root || !selector) return []
if (selector === window || isNode(selector)) {
return !_root || (selector !== window && isNode(root) && nw.contains(root, container)) ? [selector] : []
}
if (selector && arrayLike(selector)) return flatten(selector)
return nw.select(selector, root)
}
, is = function (s, r) {