UNPKG
@kickscondor/umbrellajs
Version:
latest (3.1.2)
3.1.2
3.1.1
Lightweight and intuitive javascript library
umbrellajs.com
kickscondor/umbrella
@kickscondor/umbrellajs
/
src
/
plugins
/
parent
/
parent.js
7 lines
(6 loc)
•
176 B
JavaScript
View Raw
1
2
3
4
5
6
7
// Travel the matched elements one node up
u.
prototype
.
parent
=
function
(
selector
) {
return
this
.
map
(
function
(
node
) {
return
node.
parentNode
; }).
filter
(selector); };