UNPKG

luda

Version:

A library helps to build cross-framework UI components.

10 lines (7 loc) 225 B
import matches from '../../base/matches.coffee' export default (selector, node) -> return node if matches node, selector target = node.parentNode until matches target, selector target = target.parentNode target