src/match.js
function checkChilds (priority, element, ignore, path) {
  const parent = element.parentNode
  const children = parent.childTags || parent.children
  for (var i = 0, l = children.length; i < l; i++) {
    const child = children[i]
    if (child === element) {
      const childPattern = findPattern(priority, child, ignore)
      if (!childPattern) {
        return console.warn(`
          Element couldn\'t be matched through strict ignore pattern!
        `, child, ignore, childPattern)
      }
      const pattern = `> ${childPattern}:nth-child(${i+1})`
      path.unshift(pattern)
      return true
    }
  }
  return false
}
function checkChilds (priority, element, ignore, path) {
  const parent = element.parentNode
  const children = parent.childTags || parent.children
  for (var i = 0, l = children.length; i < l; i++) {
    const child = children[i]
    if (child === element) {
      const childPattern = findPattern(priority, child, ignore)
      if (!childPattern) {
        return console.warn(`
          Element couldn\'t be matched through strict ignore pattern!
        `, child, ignore, childPattern)
      }
      const pattern = `> ${childPattern}:nth-child(${i+1})`
      path.unshift(pattern)
      return true
    }
  }
  return false
}
function checkChilds ( priority , element , ignore , path ) { const parent = element . parentNode const children = parent . childTags || parent . children for ( var i = 0 , l = children . length ; i < l ; i ++ ) { const child = children [ i ] if ( child === element ) { const childPattern = findPattern ( priority , child , ignore ) if ( ! childPattern ) { return console . warn ( ` \' ` , child , ignore , childPattern ) } const pattern = ` ${ childPattern } ${ i + 1 } ` path . unshift ( pattern ) return true } } return false }
Extend path with specific child identifier

NOTE: 'childTags' is a custom property to use as a view filter for tags using 'adapter.js'

@param  {Array.<string>} priority - [description]
@param  {HTMLElement}    element  - [description]
@param  {Object}         ignore   - [description]
@param  {Array.<string>} path     - [description]
@return {boolean}                 - [description]
Extend path with specific child identifier