How to use the nwmatcher.select 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 startae / middleman-startae / bower_components / nwmatcher / lib / ender / bridge.js View on Github external
, first: function (selector, root) {
        return $(nw.select(selector, root, function() { return false }))
      }
      // direct access in to NW.Dom.configure(options), for use such as:
github dxnn / daimio / node_modules / d3 / node_modules / jsdom / node_modules / nwmatcher / lib / ender / bridge.js View on Github external
, first: function (selector, root) {
        return $(nw.select(selector, root, function() { return false }))
      }
      // direct access in to NW.Dom.configure(options), for use such as:
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
, 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) {
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 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
, 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) {
github startae / middleman-startae / bower_components / nwmatcher / lib / ender / bridge.js View on Github external
, 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) {

nwmatcher

A CSS3-compliant JavaScript selector engine.

MIT
Latest version published 7 years ago

Package Health Score

56 / 100
Full package analysis