How to use the nwmatcher.contains function in nwmatcher

To help you get started, we’ve selected a few nwmatcher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dperini / nwmatcher / test / ender / ender.js View on Github external
, 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) {
github rvagg / archived-traversty / test / integration / ender_nwmatcher.js View on Github external
, 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) {
github dxnn / daimio / node_modules / d3 / node_modules / jsdom / node_modules / nwmatcher / lib / ender / bridge.js View on Github external
, 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) {
github dperini / nwmatcher / lib / ender / bridge.js View on Github external
, 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) {
github startae / middleman-startae / bower_components / nwmatcher / lib / ender / bridge.js View on Github external
, 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) {

nwmatcher

A CSS3-compliant JavaScript selector engine.

MIT
Latest version published 7 years ago

Package Health Score

56 / 100
Full package analysis