npm.io
1.0.5 • Published 9 years ago

bubble-match

Licence
MIT
Version
1.0.5
Deps
2
Vulns
0
Weekly
0

bubble-match

returns the first element that matches options.filter when tracking parents from options.el to options.parent

##installation:

npm install --save bubble-match

##usage:

const bubbleMatch = require('bubble-match');

##documentation:

el

bubble-match will start searching for a matching element with the element passed through options.el

parent

bubble-match will search up to, but not include, options.parent unless matchParent: true is passed in

matchParent

if true, bubble-match will include options.parent in its search for a matching element

filter

selector criteria for matching element