Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
, first: function (selector, root) {
return $(nw.select(selector, root, function() { return false }))
}
// direct access in to NW.Dom.configure(options), for use such as:
, first: function (selector, root) {
return $(nw.select(selector, root, function() { return false }))
}
// direct access in to NW.Dom.configure(options), for use such as:
, 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) {
, normalizeRoot = function (root) {
if (!root) return doc
if (typeof root == 'string') return nw.select(root)[0]
if (!root.nodeType && arrayLike(root)) return root[0]
return root
}
, select = function (selector, _root) {
, 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) {
, normalizeRoot = function (root) {
if (!root) return doc
if (typeof root == 'string') return nw.select(root)[0]
if (!root.nodeType && arrayLike(root)) return root[0]
return root
}
, select = function (selector, _root) {
, normalizeRoot = function (root) {
if (!root) return doc
if (typeof root == 'string') return nw.select(root)[0]
if (!root.nodeType && arrayLike(root)) return root[0]
return root
}
, select = function (selector, _root) {